]> git.baikalelectronics.ru Git - kernel.git/commit
spi: mediatek: single device does not require cs_gpios
authorNicolas Boichat <drinkcat@chromium.org>
Mon, 9 Nov 2015 04:14:51 +0000 (12:14 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 16 Nov 2015 17:44:57 +0000 (17:44 +0000)
commitc1263441d8c1da7afa8a7d68ff334021fc5e4030
tree8ec9304fd36f1c224f3e0cf5677997cd55ca3581
parent837e0eb1c9d194f0eb3cf87d97b2235de146c9fe
spi: mediatek: single device does not require cs_gpios

When only one device is present, it is not necessary to specify
cs_gpios, as the CS line can be controlled by the hardware
module.

Without this patch, older device tree bindings used before
79d33d8d "spi: mediatek: mt8173 spi multiple devices support"
would cause a panic on boot. This fixes the crash, and
re-introduces backward compatibility.

Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Acked-by: Leilk Liu <leilk.liu@mediatek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-mt65xx.c