From: Andy Shevchenko Date: Wed, 25 Mar 2015 18:26:26 +0000 (+0200) Subject: spi: dw: fix crash on setup stage X-Git-Tag: omap-for-v4.1/fixes-rc1~176^2~4^4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=207cda93f0446c2da5461a37252c7468ddc1c2bc;p=pandora-kernel.git spi: dw: fix crash on setup stage The commit 1a7b7ee72c21 (spi: Ensure that CS line is in non-active state after spi_setup()) introduces an unconditional call of spi_set_cs() before ->setup(). The dw_spi_set_cs() relies on that fact that ->setup() is already called, but it doesn't now. This patch fixes the crash by adding an additional check to dw_spi_set_cs(). Signed-off-by: Andy Shevchenko Signed-off-by: Mark Brown --- Reading git-diff-tree failed