V4L/DVB (10066): mt9m001 mt9v022: fix bus-width switch GPIO availability test
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Wed, 17 Dec 2008 17:05:38 +0000 (14:05 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 30 Dec 2008 11:40:14 +0000 (09:40 -0200)
commit297a7ef700ce2e91ed0f941034541d1563ef0a7d
tree923b2e5c500f20c615ba5da1826c809b3043e801
parent88f4b8990fd2b4d856f63c3689bb4df18029da06
V4L/DVB (10066): mt9m001 mt9v022: fix bus-width switch GPIO availability test

Testing for non-NULL platform-data is not enough, we have to check if the GPIO
in the platform data is valid or not. Also see my earlier patch:

[ARM] pxa/pcm990: use negative number for an invalid GPIO in camera data

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/mt9m001.c
drivers/media/video/mt9v022.c