[ARM] pxa/mioa701: fix camera regression
authorRobert Jarzmik <robert.jarzmik@free.fr>
Wed, 2 Jun 2010 21:29:50 +0000 (23:29 +0200)
committerEric Miao <eric.y.miao@gmail.com>
Sun, 13 Jun 2010 15:55:15 +0000 (23:55 +0800)
commit8dbed71ad1ab0636745af958934f1ca670702ca0
tree91e9f129da8d7dd5f531303a0e6dd3fe241d9878
parent60adc112bbd430b90cbafecc19e6e9be2e2000e3
[ARM] pxa/mioa701: fix camera regression

Since commit a48c24a696f0d93c49f913b7818e9819612b1f4e, the
camera is not working anymore.

After the v4l2 migration, the mt9m111 camera board
information was not passed to the i2c layer anymore, but
stored for future use of v4l2 (through soc_camera).

Because mioa701_i2c_devices[] was tagged as "__initdata",
and because after the v4l2 migration, the new structure
"iclink" references it, the mt9m111 driver is not probed
anymore, as part of "iclink" is not valid (discarded after
kernel init).

Although there is not compilation error, nor runtime oops,
this patch restores a working camera on the mioa701 board.

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
arch/arm/mach-pxa/mioa701.c