提交 3de0a911 编写于 作者: L Lars-Peter Clausen 提交者: Mauro Carvalho Chehab

[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: NLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
上级 b13f4af2
...@@ -616,7 +616,6 @@ static int adv7180_probe(struct i2c_client *client, ...@@ -616,7 +616,6 @@ static int adv7180_probe(struct i2c_client *client,
err_free_ctrl: err_free_ctrl:
adv7180_exit_controls(state); adv7180_exit_controls(state);
err_unreg_subdev: err_unreg_subdev:
v4l2_device_unregister_subdev(sd);
mutex_destroy(&state->mutex); mutex_destroy(&state->mutex);
err: err:
printk(KERN_ERR KBUILD_MODNAME ": Failed to probe: %d\n", ret); printk(KERN_ERR KBUILD_MODNAME ": Failed to probe: %d\n", ret);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册