diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2009-08-25 10:06:22 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-09-18 23:18:25 -0400 |
commit | bc1937b41d8253e2b554da385023a92189d38917 (patch) | |
tree | c3f4b27fb7b3ff1607191c0eadcacb55aef2b2cf /arch | |
parent | c41debafc6e396a8e15f1f017aec7c0cf67e1b54 (diff) |
V4L/DVB (12505): soc_camera_platform: pass device pointer from soc-camera core on .add_device()
Add a struct device pointer to struct soc_camera_platform_info and let the user
(ap325rxa) pass it down to soc_camera_platform.c in its .add_device() method.
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sh/boards/board-ap325rxa.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sh/boards/board-ap325rxa.c b/arch/sh/boards/board-ap325rxa.c index 7e2d2de0384d..97a2fc97e108 100644 --- a/arch/sh/boards/board-ap325rxa.c +++ b/arch/sh/boards/board-ap325rxa.c | |||
@@ -345,6 +345,8 @@ static int ap325rxa_camera_add(struct soc_camera_link *icl, | |||
345 | if (icl != &camera_info.link || camera_probe() <= 0) | 345 | if (icl != &camera_info.link || camera_probe() <= 0) |
346 | return -ENODEV; | 346 | return -ENODEV; |
347 | 347 | ||
348 | camera_info.dev = dev; | ||
349 | |||
348 | return platform_device_register(&camera_device); | 350 | return platform_device_register(&camera_device); |
349 | } | 351 | } |
350 | 352 | ||