From: Ian Molton Date: Sat, 5 Jul 2014 22:26:20 +0000 (-0300) Subject: [media] adv7180: Remove duplicate unregister call X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=632f2b0db9dabbaa5835b50a75a3a1639d6f6f38;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [media] adv7180: Remove duplicate unregister call This driver moved over to v4l2_async_unregister_subdev() but still retained a call to v4l2_unregister_subdev(). Remove. Signed-off-by: Ian Molton Signed-off-by: Ben Dooks Acked-by: Hans Verkuil Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/i2c/adv7180.c b/drivers/media/i2c/adv7180.c index ac1cdbe251a3..821178dcb08e 100644 --- a/drivers/media/i2c/adv7180.c +++ b/drivers/media/i2c/adv7180.c @@ -663,7 +663,6 @@ static int adv7180_remove(struct i2c_client *client) if (state->irq > 0) free_irq(client->irq, state); - v4l2_device_unregister_subdev(sd); adv7180_exit_controls(state); mutex_destroy(&state->mutex); return 0;