Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] ad5820: unregister async sub-device

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>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>

authored by

Sakari Ailus and committed by
Mauro Carvalho Chehab
586248a7 13c6c6ea

+1 -1
+1 -1
drivers/media/i2c/ad5820.c
··· 341 341 struct v4l2_subdev *subdev = i2c_get_clientdata(client); 342 342 struct ad5820_device *coil = to_ad5820_device(subdev); 343 343 344 - v4l2_device_unregister_subdev(&coil->subdev); 344 + v4l2_async_unregister_subdev(&coil->subdev); 345 345 v4l2_ctrl_handler_free(&coil->ctrls); 346 346 media_entity_cleanup(&coil->subdev.entity); 347 347 mutex_destroy(&coil->power_lock);