media: imx: Don't register IPU subdevs/links if CSI port missing
authorSteve Longerbeam <slongerbeam@gmail.com>
Wed, 20 Feb 2019 23:53:32 +0000 (18:53 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 19 Mar 2019 17:42:52 +0000 (13:42 -0400)
commitdee747f88167124884a918855c1f438e2f7f39e2
treef57997c6b36119ebbdb8bc5a4c9d44626a1f9fb1
parent085b26da62211cb77622008082adff56aefa771d
media: imx: Don't register IPU subdevs/links if CSI port missing

The second IPU internal sub-devices were being registered and links
to them created even when the second IPU is not present. This is wrong
for i.MX6 S/DL and i.MX53 which have only a single IPU.

Fixes: e130291212df5 ("[media] media: Add i.MX media core driver")
Signed-off-by: Steve Longerbeam <slongerbeam@gmail.com>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Cc: stable@vger.kernel.org
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/staging/media/imx/imx-media-dev.c
drivers/staging/media/imx/imx-media-internal-sd.c
drivers/staging/media/imx/imx-media-of.c
drivers/staging/media/imx/imx-media.h
drivers/staging/media/imx/imx7-media-csi.c