* [PATCH 1/1] ad5820: unregister async sub-device
@ 2017-05-26 13:00 Sakari Ailus
2017-05-27 6:55 ` Pavel Machek
0 siblings, 1 reply; 2+ messages in thread
From: Sakari Ailus @ 2017-05-26 13:00 UTC (permalink / raw)
To: linux-media; +Cc: pavel
The async sub-device was not unregistered in ad5820_remove() as it should
have been; do it now. Also remove the now-redundant
v4l2_device_unregister_subdev().
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
---
drivers/media/i2c/ad5820.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/i2c/ad5820.c b/drivers/media/i2c/ad5820.c
index 3d2a3c6..034ebf7 100644
--- a/drivers/media/i2c/ad5820.c
+++ b/drivers/media/i2c/ad5820.c
@@ -341,7 +341,7 @@ static int ad5820_remove(struct i2c_client *client)
struct v4l2_subdev *subdev = i2c_get_clientdata(client);
struct ad5820_device *coil = to_ad5820_device(subdev);
- v4l2_device_unregister_subdev(&coil->subdev);
+ v4l2_async_unregister_subdev(&coil->subdev);
v4l2_ctrl_handler_free(&coil->ctrls);
media_entity_cleanup(&coil->subdev.entity);
mutex_destroy(&coil->power_lock);
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] ad5820: unregister async sub-device
2017-05-26 13:00 [PATCH 1/1] ad5820: unregister async sub-device Sakari Ailus
@ 2017-05-27 6:55 ` Pavel Machek
0 siblings, 0 replies; 2+ messages in thread
From: Pavel Machek @ 2017-05-27 6:55 UTC (permalink / raw)
To: Sakari Ailus; +Cc: linux-media
[-- Attachment #1: Type: text/plain, Size: 465 bytes --]
On Fri 2017-05-26 16:00:48, Sakari Ailus wrote:
> The async sub-device was not unregistered in ad5820_remove() as it should
> have been; do it now. Also remove the now-redundant
> v4l2_device_unregister_subdev().
>
> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-05-27 6:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-26 13:00 [PATCH 1/1] ad5820: unregister async sub-device Sakari Ailus
2017-05-27 6:55 ` Pavel Machek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox