From: Josef Ahmad Date: Tue, 9 Apr 2013 17:25:34 +0000 (+0100) Subject: spi-gpio: init CS before spi_bitbang_setup() X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~130^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b8cc3306e78490bda26815b04c786d8e1fc1489;p=pandora-kernel.git spi-gpio: init CS before spi_bitbang_setup() spi_bitbang_setup() deasserts the chip select line to initialise the device. The chip select GPIO line is obtained from spi_gpio->cs_gpios[] private data. Currently, devices that are not registered under devicetree environment will call into spi_bitbang_setup() with stale cs_gpios[]. This patch ensures spi_gpio->cs_gpios[] is always initialised prior to calling spi_bitbang_setup(). Reviewed-by: Daniel Mack Signed-off-by: Josef Ahmad Signed-off-by: Mark Brown --- Reading git-diff-tree failed