spi: pxa2xx: Revert "Only claim CS GPIOs when the slave device is created"
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 27 Jul 2017 11:37:08 +0000 (14:37 +0300)
committerMark Brown <broonie@kernel.org>
Thu, 27 Jul 2017 16:11:24 +0000 (17:11 +0100)
commit6ac5a435ae6739c06ebbf79939e86e721b88a90f
treee8e8e274277c16de44080d7d2117cde66de43953
parent676a4e3bab445d53fca4756865e2c0e2a87c38d6
spi: pxa2xx: Revert "Only claim CS GPIOs when the slave device is created"

There is a valid case to call setup() following by setup_cs() several
times for the same chip.

With the commit

  676a4e3bab44 ("spi: pxa2xx: Only claim CS GPIOs when the slave device is created")

it is not possible anymore due to GPIO line being requested already
during the first call to setup_cs().

For now, revert the commit to make things work again.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-pxa2xx.c