spi: spi-gpio: Add checks for the dt properties
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Fri, 25 Jan 2013 08:39:34 +0000 (09:39 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 26 Jan 2013 07:35:56 +0000 (15:35 +0800)
The bindings assumed that the gpios properties were always there, which
made the NO_TX and NO_RX mode not usable from device tree. Add extra
checks to make sure that the driver can work if either MOSI or MISO is
not used.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

No differences found