staging: media: starfive: Remove links when unregistering devices
[ Upstream commit810dd605e9] Need to remove links when unregistering devices. Fixes:ac7da4a73b("media: staging: media: starfive: camss: Register devices") Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
303dc938c1
commit
c58270de8d
@@ -162,6 +162,12 @@ err_isp_unregister:
|
||||
|
||||
static void stfcamss_unregister_devs(struct stfcamss *stfcamss)
|
||||
{
|
||||
struct stf_capture *cap_yuv = &stfcamss->captures[STF_CAPTURE_YUV];
|
||||
struct stf_isp_dev *isp_dev = &stfcamss->isp_dev;
|
||||
|
||||
media_entity_remove_links(&isp_dev->subdev.entity);
|
||||
media_entity_remove_links(&cap_yuv->video.vdev.entity);
|
||||
|
||||
stf_isp_unregister(&stfcamss->isp_dev);
|
||||
stf_capture_unregister(stfcamss);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user