projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b13f4af
)
[media] adv7180: Remove unnecessary v4l2_device_unregister_subdev() from probe error...
author
Lars-Peter Clausen
<lars@metafoo.de>
Fri, 7 Mar 2014 16:14:29 +0000
(13:14 -0300)
committer
Mauro Carvalho Chehab
<m.chehab@samsung.com>
Tue, 11 Mar 2014 13:24:49 +0000
(10:24 -0300)
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>
drivers/media/i2c/adv7180.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/media/i2c/adv7180.c
b/drivers/media/i2c/adv7180.c
index 2359fd834c9bcc3a7c3e298d37541f0f0713323b..85cb4e9f7847c1bbaae44e04df8c4f711dcb7b3c 100644
(file)
--- 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);