spi: omap2-mcspi: Prevent duplicate gpio_request
authorMichael Welling <mwelling@ieee.org>
Mon, 30 Nov 2015 15:02:39 +0000 (09:02 -0600)
committerMark Brown <broonie@kernel.org>
Tue, 1 Dec 2015 17:05:34 +0000 (17:05 +0000)
commit2f538c017e1a8620d19553931199c6d6a6d31bb2
tree8695571786a4c1a27d2fea132757ee9ca495380e
parentbeca365565d8f8912dce67567f54ad4c71734843
spi: omap2-mcspi: Prevent duplicate gpio_request

Occasionally the setup function will be called multiple times. Only request
the gpio the first time otherwise -EBUSY will occur on subsequent calls to
setup.

Reported-by: Joseph Bell <joe@iachieved.it>
Signed-off-by: Michael Welling <mwelling@ieee.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-omap2-mcspi.c