diff options
author | Jacopo Mondi <jacopo+renesas@jmondi.org> | 2019-01-17 12:33:04 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-01-21 11:39:36 -0200 |
commit | 341fe1d301f587c930509f6b9153436b957f649c (patch) | |
tree | 143cd31788cd6766195fbcc6bf3ccdddf00f25cc | |
parent | e8f9b16d72631870e30a3d8e4ee9f1c097bc7ba0 (diff) | |
download | linux-341fe1d301f587c930509f6b9153436b957f649c.tar.gz linux-341fe1d301f587c930509f6b9153436b957f649c.tar.bz2 linux-341fe1d301f587c930509f6b9153436b957f649c.zip |
media: tw9910: Unregister subdevice with v4l2-async
As the tw9910 subdevice is registered through the v4l2-async framework,
use the v4l2-async provided function to register it.
Fixes: 7b20f325a566 ("media: i2c: tw9910: Remove soc_camera dependencies")
Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
-rw-r--r-- | drivers/media/i2c/tw9910.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/tw9910.c b/drivers/media/i2c/tw9910.c index 8d1138e13803..4d7cd736b930 100644 --- a/drivers/media/i2c/tw9910.c +++ b/drivers/media/i2c/tw9910.c @@ -1001,7 +1001,7 @@ static int tw9910_remove(struct i2c_client *client) if (priv->pdn_gpio) gpiod_put(priv->pdn_gpio); clk_put(priv->clk); - v4l2_device_unregister_subdev(&priv->subdev); + v4l2_async_unregister_subdev(&priv->subdev); return 0; } |