]> git.openfabrics.org - ~shefty/rdma-dev.git/commit
[media] soc-camera: Don't fail at module init time if no device is present
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 18 Jul 2012 13:53:56 +0000 (10:53 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 30 Jul 2012 22:13:39 +0000 (19:13 -0300)
commit1858c99db41eec26bb33e6b67020a41705e83faf
tree5068be866697d6ed4c61358bfadb5e99aa2bb644
parenta1acb8f9a088193a66b4d176f5b9a7fb10356ae7
[media] soc-camera: Don't fail at module init time if no device is present

The soc-camera module exports functions that are needed by soc-camera
client drivers even when not running in soc-camera mode. Replace the
platform_driver_probe() with a platform_driver_register() call to avoid
module load failures if no soc-camera device is present.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/soc_camera.c