[media] s5p-fimc: Allow probe() to succeed with null platform data
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Fri, 7 Oct 2011 10:40:00 +0000 (07:40 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 24 Nov 2011 23:02:39 +0000 (21:02 -0200)
commit5cbf6f16ecc07e9f73107c1adf95013bce9f2cf6
treeb15023fd8ef27844c5414bd0abdd4fb0c52822ef
parent2c1bb62e217f4f2eb6fa9734dcb331bc09c7768e
[media] s5p-fimc: Allow probe() to succeed with null platform data

The "s5p-fimc-md" platform device platform_data is used to pass
attached camera sensor data. Not allowing device probe() to succeed
when it's null prevents using FIMC as a mem-to-mem device only.
Fix this by removing the platform_data check against null and
registering sensors only if platform_data is specified.
Also add logging of the information which /dev/video is assigned
to which device during probe().

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/s5p-fimc/fimc-mdevice.c