From: Lars-Peter Clausen Date: Fri, 7 Mar 2014 16:14:29 +0000 (-0300) Subject: [media] adv7180: Remove unnecessary v4l2_device_unregister_subdev() from probe error... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=3de0a911561ceb3fcd1211faecf05e68b60105a1;p=openwrt%2Fstaging%2Fblogic.git [media] adv7180: Remove unnecessary v4l2_device_unregister_subdev() from probe error path The device can't possibly be registered at this point, so no need to to call v4l2_device_unregister_subdev(). Signed-off-by: Lars-Peter Clausen 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 2359fd834c9b..85cb4e9f7847 100644 --- a/drivers/media/i2c/adv7180.c +++ b/drivers/media/i2c/adv7180.c @@ -616,7 +616,6 @@ static int adv7180_probe(struct i2c_client *client, err_free_ctrl: adv7180_exit_controls(state); err_unreg_subdev: - v4l2_device_unregister_subdev(sd); mutex_destroy(&state->mutex); err: printk(KERN_ERR KBUILD_MODNAME ": Failed to probe: %d\n", ret);