spi: omap2-mcspi: Handle error on gpio_request
authorMichael Welling <mwelling@ieee.org>
Sun, 24 May 2015 02:13:45 +0000 (21:13 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 25 May 2015 12:00:04 +0000 (13:00 +0100)
commitc4339ac775b0558373bb6882b8355cf6e85d5709
treeb1a81d97d4e4f2b147f13817c58c05ceba0ce422
parenta06b430fd82c816bf76fb6f6f63f1ae1ced3b897
spi: omap2-mcspi: Handle error on gpio_request

If a valid GPIO is specified but cannot be requested by the driver, print a
message and error out of omap2_mcspi_setup.

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