linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] media: tw9910: Unregister subdevice with v4l2-async
@ 2019-01-17 14:33 Jacopo Mondi
  0 siblings, 0 replies; only message in thread
From: Jacopo Mondi @ 2019-01-17 14:33 UTC (permalink / raw)
  To: hverkuil-cisco, sakari.ailus, mchehab; +Cc: Jacopo Mondi, linux-media

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>
---
As agreed with Hans on irc, this patch makes removing soc_camera.h inclusion
from include/media/i2c/tw9910.h safe. Please have this patch in before any
series that removes soc_camera headers.

Thanks
   j
---
 drivers/media/i2c/tw9910.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/i2c/tw9910.c b/drivers/media/i2c/tw9910.c
index a54548cc4285..c7321a70e3ed 100644
--- a/drivers/media/i2c/tw9910.c
+++ b/drivers/media/i2c/tw9910.c
@@ -1000,7 +1000,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;
 }
--
2.20.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-01-17 14:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-17 14:33 [PATCH] media: tw9910: Unregister subdevice with v4l2-async Jacopo Mondi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).