projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c25534
)
[media] adv7180: Add support for async device registration
author
Lars-Peter Clausen
<
[email protected]
>
Fri, 7 Mar 2014 16:14:32 +0000
(13:14 -0300)
committer
Mauro Carvalho Chehab
<
[email protected]
>
Tue, 11 Mar 2014 13:26:15 +0000
(10:26 -0300)
Add support for async device registration to the adv7180 driver.
Signed-off-by: Lars-Peter Clausen <
[email protected]
>
Signed-off-by: Hans Verkuil <
[email protected]
>
Signed-off-by: Mauro Carvalho Chehab <
[email protected]
>
drivers/media/i2c/adv7180.c
patch
|
blob
|
history
diff --git
a/drivers/media/i2c/adv7180.c
b/drivers/media/i2c/adv7180.c
index c750aaee74e1acd0f85a4864e371ddd40fe780a5..623cec5c5eb95c6e99babf0cec9ab1bdc29ef9b7 100644
(file)
--- a/
drivers/media/i2c/adv7180.c
+++ b/
drivers/media/i2c/adv7180.c
@@
-597,8
+597,16
@@
static int adv7180_probe(struct i2c_client *client,
ret = init_device(client, state);
if (ret)
goto err_free_ctrl;
+
+ ret = v4l2_async_register_subdev(sd);
+ if (ret)
+ goto err_free_irq;
+
return 0;
+err_free_irq:
+ if (state->irq > 0)
+ free_irq(client->irq, state);
err_free_ctrl:
adv7180_exit_controls(state);
err_unreg_subdev:
@@
-612,6
+620,8
@@
static int adv7180_remove(struct i2c_client *client)
struct v4l2_subdev *sd = i2c_get_clientdata(client);
struct adv7180_state *state = to_state(sd);
+ v4l2_async_unregister_subdev(sd);
+
if (state->irq > 0)
free_irq(client->irq, state);