omap3isp: Defer probe when the IOMMU is not available
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 11 Mar 2013 15:02:13 +0000 (12:02 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Jun 2014 20:25:33 +0000 (13:25 -0700)
commit5081b0bcd956f6ef40874bfb8f59f11b2759347a
tree4de6a358172ad1accfb89f1170e23b2a9df5086f
parent3d3da408c35c3d674e29d56b19db2e37058bf2dc
omap3isp: Defer probe when the IOMMU is not available

commit 7c0f812a5d65e712618af880dda4a5cc7ed79463 upstream.

When the OMAP3 ISP driver is compiled in the kernel the device can be
probed before the corresponding IOMMU is available. Defer the probe in
that case, and fix a crash in the error path.

Reported-by: Javier Martin <javier.martin@vista-silicon.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/platform/omap3isp/isp.c