|
@@ -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);
|