media: tw9910: Unregister subdevice with v4l2-async
authorJacopo Mondi <jacopo+renesas@jmondi.org>
Thu, 17 Jan 2019 14:33:04 +0000 (12:33 -0200)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 21 Jan 2019 13:39:36 +0000 (11:39 -0200)
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>
drivers/media/i2c/tw9910.c

index 8d1138e..4d7cd73 100644 (file)
@@ -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;
 }