summaryrefslogtreecommitdiff
path: root/drivers/spi/spi.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2015-03-25 20:26:26 +0200
committerMark Brown <broonie@kernel.org>2015-03-25 11:54:40 -0700
commit207cda93f0446c2da5461a37252c7468ddc1c2bc (patch)
tree04ffdb316fb3a39ee9d60291e985820a5eb3e7b2 /drivers/spi/spi.c
parent36111da7838e186069ed1ec4fe2fe7510e81da55 (diff)
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 <andriy.shevchenko@linux.intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi.c')
0 files changed, 0 insertions, 0 deletions