From: Michael Hennerich Date: Fri, 22 Oct 2010 06:01:47 +0000 (-0400) Subject: spi/bfin_spi: only request GPIO on first load X-Git-Tag: v2.6.37-rc1~2^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73e1ac16258fe7e55cce4691e32c0b44d4579e08;p=pandora-kernel.git spi/bfin_spi: only request GPIO on first load The gpiolib code does not allow people to do gpio_request() on a GPIO once it has already been requested. So make sure we only request the pin on the first setup of a SPI device. Otherwise, if you attempts to reconfigure a SPI device on the fly (like change bit sizes), the setup function incorrectly fails. Signed-off-by: Michael Hennerich Signed-off-by: Mike Frysinger Signed-off-by: Grant Likely --- Reading git-diff-tree failed