mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-18 00:49:17 -05:00
staging: media: starfive: Remove links when unregistering devices
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>
This commit is contained in:
committed by
Hans Verkuil
parent
53cdd87c74
commit
810dd605e9
@@ -162,6 +162,12 @@ static int stfcamss_register_devs(struct stfcamss *stfcamss)
|
||||
|
||||
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