From: David Brownell Date: Fri, 6 Mar 2009 00:46:44 +0000 (-0800) Subject: leds: just ignore invalid GPIOs in leds-gpio X-Git-Tag: v2.6.30-rc1~187^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d379ee8acd0719736ee7f1d1ccc3b5765880eaf8;p=pandora-kernel.git leds: just ignore invalid GPIOs in leds-gpio Sometimes it's awkward to make sure that the array in the platform_data handed to the leds-gpio driver has only valid data ... some leds may not be always available, and coping with that currently requires patching or rebuilding the array. This patch fixes that by making it be OK to pass an invalid GPIO (such as "-EINVAL") ... such table entries are skipped. [rpurdie@linux.intel.com: adjusted to apply against other led tree changes] Signed-off-by: David Brownell Tested-by: Diego Dompe Signed-off-by: Richard Purdie --- Reading git-diff-tree failed