diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2014-03-07 13:14:29 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-03-11 10:24:49 -0300 |
commit | 3de0a911561ceb3fcd1211faecf05e68b60105a1 (patch) | |
tree | 92fbc3244c4d6d686e544219696737281223410f /drivers/media | |
parent | b13f4af25c0a36d74a69f7d30e2a28fa941e99b5 (diff) | |
download | talos-obmc-linux-3de0a911561ceb3fcd1211faecf05e68b60105a1.tar.gz talos-obmc-linux-3de0a911561ceb3fcd1211faecf05e68b60105a1.zip |
[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 <lars@metafoo.de>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/i2c/adv7180.c | 1 |
1 files changed, 0 insertions, 1 deletions
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); |