From: Guennadi Liakhovetski Date: Tue, 25 Nov 2008 17:57:08 +0000 (+0100) Subject: [ARM] pxa/pcm990: use negative number for an invalid GPIO in camera data X-Git-Tag: v2.6.28-rc7~38^2^2~2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=72e9622c2a2eb73d82c716504cc93d22cd3cfd8e;p=linux-2.6-omap-h63xx.git [ARM] pxa/pcm990: use negative number for an invalid GPIO in camera data 0 is a valid GPIO number, use a negative number to specify, that this camera doesn't have a GPIO for bus-width switching. Signed-off-by: Guennadi Liakhovetski Signed-off-by: Eric Miao --- diff --git a/arch/arm/mach-pxa/pcm990-baseboard.c b/arch/arm/mach-pxa/pcm990-baseboard.c index f601425f1b1..b36cec5c9ee 100644 --- a/arch/arm/mach-pxa/pcm990-baseboard.c +++ b/arch/arm/mach-pxa/pcm990-baseboard.c @@ -385,6 +385,7 @@ static struct soc_camera_link iclink[] = { .gpio = NR_BUILTIN_GPIO + 1, }, { .bus_id = 0, /* Must match with the camera ID above */ + .gpio = -ENXIO, } };