[media] s5p-fimc: Add device tree support for the media device driver
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Fri, 8 Mar 2013 15:59:33 +0000 (12:59 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 31 Mar 2013 13:46:12 +0000 (10:46 -0300)
commite2985a260e6615503b4fa8e66788708e750c7750
tree4a793ca4e1cce65a6f0e3d993d04b2a56f300b5a
parenteb62d9e9d6327322a5fd3894bfecb3a3aa9391ba
[media] s5p-fimc: Add device tree support for the media device driver

This patch adds changes required for the main camera media device
driver corresponding to the top level 'camera' device node.
The drivers of devices corresponding to child nodes of the 'camera'
node are looked up and and registered as sub-devices to the top
level driver. The main driver's probing is deferred if any of the
sub-device drivers is not yet initialized and ready.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/s5p-fimc/fimc-core.c
drivers/media/platform/s5p-fimc/fimc-mdevice.c
drivers/media/platform/s5p-fimc/fimc-mdevice.h
include/media/s5p_fimc.h