diff options
author | Steve Longerbeam <slongerbeam@gmail.com> | 2019-05-10 17:50:07 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-05-28 14:10:25 -0400 |
commit | 3e80d125b5075ed66a208cdcb1581e8d414ffd63 (patch) | |
tree | b62e72a508fbd12ef5432c791886dff45f4937ac /drivers/staging/media/imx/imx-media-capture.c | |
parent | 34ff38745b166f317530c05ac881aafc20c33041 (diff) | |
download | linux-3e80d125b5075ed66a208cdcb1581e8d414ffd63.tar.gz linux-3e80d125b5075ed66a208cdcb1581e8d414ffd63.tar.bz2 linux-3e80d125b5075ed66a208cdcb1581e8d414ffd63.zip |
media: staging/imx: Move add_video_device into capture_device_register
Move imx_media_add_video_device() into imx_media_capture_device_register().
Also the former has no error conditions to convert to void.
Signed-off-by: Steve Longerbeam <slongerbeam@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/staging/media/imx/imx-media-capture.c')
-rw-r--r-- | drivers/staging/media/imx/imx-media-capture.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/staging/media/imx/imx-media-capture.c b/drivers/staging/media/imx/imx-media-capture.c index a70ad3b4e3e9..50c3d3bc724b 100644 --- a/drivers/staging/media/imx/imx-media-capture.c +++ b/drivers/staging/media/imx/imx-media-capture.c @@ -774,6 +774,9 @@ int imx_media_capture_device_register(struct imx_media_video_dev *vdev) vfd->ctrl_handler = &priv->ctrl_hdlr; + /* add vdev to the video device list */ + imx_media_add_video_device(priv->md, vdev); + return 0; unreg: video_unregister_device(vfd); |