diff options
author | Jacopo Mondi <jacopo+renesas@jmondi.org> | 2018-03-02 09:46:43 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2018-03-06 11:59:08 -0500 |
commit | 27a48feac025f121414e6953912312c395f6a7f9 (patch) | |
tree | 5ee68bd34c9409660cfa6bce76afe1a5a5428bb8 | |
parent | d9c70bbd39a5b076e1eaa88d53530d0219f7630e (diff) | |
download | linux-27a48feac025f121414e6953912312c395f6a7f9.tar.gz linux-27a48feac025f121414e6953912312c395f6a7f9.tar.bz2 linux-27a48feac025f121414e6953912312c395f6a7f9.zip |
media: ov772x: Unregister async subdevice
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>
-rw-r--r-- | drivers/media/i2c/ov772x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/ov772x.c b/drivers/media/i2c/ov772x.c index 7fdf54e57ce0..b62860c89439 100644 --- 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; |