From: Jacopo Mondi Date: Fri, 2 Mar 2018 14:46:43 +0000 (-0500) Subject: media: ov772x: Unregister async subdevice X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=27a48feac025f121414e6953912312c395f6a7f9;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Mauro Carvalho Chehab --- 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;