summaryrefslogtreecommitdiffstats
path: root/drivers/media/i2c/ad5820.c
diff options
context:
space:
mode:
authorSakari Ailus2017-05-26 15:00:48 +0200
committerMauro Carvalho Chehab2017-06-08 17:34:17 +0200
commit586248a75b36d39aa60eb6e447b7f7e25e011e73 (patch)
tree1df4796f7abd44e892ad6845b4e77677cbdb36a8 /drivers/media/i2c/ad5820.c
parent[media] platform/Makefile: don't depend on arch to include dirs (diff)
downloadkernel-qcow2-linux-586248a75b36d39aa60eb6e447b7f7e25e011e73.tar.gz
kernel-qcow2-linux-586248a75b36d39aa60eb6e447b7f7e25e011e73.tar.xz
kernel-qcow2-linux-586248a75b36d39aa60eb6e447b7f7e25e011e73.zip
[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>
Diffstat (limited to 'drivers/media/i2c/ad5820.c')
-rw-r--r--drivers/media/i2c/ad5820.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/ad5820.c b/drivers/media/i2c/ad5820.c
index 3d2a3c6b67d8..034ebf754007 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);