spi: gpio: Don't request CS GPIO in DT use-case
authorAndrey Smirnov <andrew.smirnov@gmail.com>
Wed, 3 Apr 2019 04:01:27 +0000 (21:01 -0700)
committerMark Brown <broonie@kernel.org>
Fri, 5 Apr 2019 03:23:07 +0000 (10:23 +0700)
commit249e2632dcd0509b8f8f296f5aabf4d48dfd6da8
treee3de5e33d07ea3e9bbd7aa157fe5ffbb84cef660
parentd9088966c851ecbe820c053b347e8d565e4fa05c
spi: gpio: Don't request CS GPIO in DT use-case

DT use-case already relies on SPI core to control CS (requested by
of_spi_register_master() and controlled spi_set_cs()), so there's no
need to try to request those GPIO in spi-gpio code. Change the code
such that spi-gpio's CS related code is only used if device is probed
via pdata.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: Chris Healy <cphealy@gmail.com>
Cc: linux-spi@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-gpio.c