All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] media: ov7670: use v4l2_async_unregister_subdev()
@ 2017-11-24 14:40 Akinobu Mita
  2017-11-24 14:40 ` [PATCH] media: ov7670: add V4L2_CID_TEST_PATTERN control Akinobu Mita
  2017-11-24 18:09 ` [PATCH] media: ov7670: use v4l2_async_unregister_subdev() Kieran Bingham
  0 siblings, 2 replies; 3+ messages in thread
From: Akinobu Mita @ 2017-11-24 14:40 UTC (permalink / raw)
  To: linux-media
  Cc: Akinobu Mita, Jonathan Corbet, Sakari Ailus, Mauro Carvalho Chehab

The sub-device for ov7670 is registered by v4l2_async_register_subdev().
So it should be unregistered by v4l2_async_unregister_subdev() instead of
v4l2_device_unregister_subdev().

Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Sakari Ailus <sakari.ailus@linux.intel.com>
Cc: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
---
 drivers/media/i2c/ov7670.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/i2c/ov7670.c b/drivers/media/i2c/ov7670.c
index 950a0ac..b61d88e 100644
--- a/drivers/media/i2c/ov7670.c
+++ b/drivers/media/i2c/ov7670.c
@@ -1820,7 +1820,7 @@ static int ov7670_remove(struct i2c_client *client)
 	struct v4l2_subdev *sd = i2c_get_clientdata(client);
 	struct ov7670_info *info = to_state(sd);
 
-	v4l2_device_unregister_subdev(sd);
+	v4l2_async_unregister_subdev(sd);
 	v4l2_ctrl_handler_free(&info->hdl);
 	clk_disable_unprepare(info->clk);
 #if defined(CONFIG_MEDIA_CONTROLLER)
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-11-24 18:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-24 14:40 [PATCH] media: ov7670: use v4l2_async_unregister_subdev() Akinobu Mita
2017-11-24 14:40 ` [PATCH] media: ov7670: add V4L2_CID_TEST_PATTERN control Akinobu Mita
2017-11-24 18:09 ` [PATCH] media: ov7670: use v4l2_async_unregister_subdev() Kieran Bingham

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.