spi/bfin_spi: only request GPIO on first load
authorMichael Hennerich <michael.hennerich@analog.com>
Fri, 22 Oct 2010 06:01:47 +0000 (02:01 -0400)
committerGrant Likely <grant.likely@secretlab.ca>
Fri, 22 Oct 2010 07:26:46 +0000 (01:26 -0600)
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 <michael.hennerich@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/spi_bfin5xx.c

Simple merge