projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9c70bb
)
media: ov772x: Unregister async subdevice
author
Jacopo Mondi
<jacopo+renesas@jmondi.org>
Fri, 2 Mar 2018 14:46:43 +0000
(09:46 -0500)
committer
Mauro Carvalho Chehab
<mchehab@s-opensource.com>
Tue, 6 Mar 2018 16:59:08 +0000
(11:59 -0500)
As the media subdevice is registered with 'v4l2_async_register_subdev()'
unregister it at module removal time with
'v4l2_async_unregister_subdev()'
Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/ov772x.c
patch
|
blob
|
history
diff --git
a/drivers/media/i2c/ov772x.c
b/drivers/media/i2c/ov772x.c
index
7fdf54e
..
b62860c
100644
(file)
--- a/
drivers/media/i2c/ov772x.c
+++ b/
drivers/media/i2c/ov772x.c
@@
-1328,7
+1328,7
@@
static int ov772x_remove(struct i2c_client *client)
clk_put(priv->clk);
if (priv->pwdn_gpio)
gpiod_put(priv->pwdn_gpio);
- v4l2_
device
_unregister_subdev(&priv->subdev);
+ v4l2_
async
_unregister_subdev(&priv->subdev);
v4l2_ctrl_handler_free(&priv->hdl);
return 0;