diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-11 13:35:49 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-11 13:35:49 -0700 |
commit | 79d2d21ee06f3634423d1a45fb6ddfcae59061fd (patch) | |
tree | 16ddd4a4f0ccd337d57a24fbc51fadb4c6e4248d /drivers/spi/spi-mpc52xx-psc.c | |
parent | c0c4cf06456d4fffc45cb618a1a7af1e5861cbc8 (diff) | |
parent | 6eadd8463101830d50e381185701d58f4ac3abb9 (diff) | |
download | talos-op-linux-79d2d21ee06f3634423d1a45fb6ddfcae59061fd.tar.gz talos-op-linux-79d2d21ee06f3634423d1a45fb6ddfcae59061fd.zip |
Merge tag 'spi-v3.15-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi
Pull spi fixes from Mark Brown:
"A few driver specific fixes, the main one being the fix for handling
of complete callbacks that are open coded in individual drivers to
allow callers to omit the completion. As we move things into the core
that sort of issue should become less and less common"
* tag 'spi-v3.15-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi:
spi: qup: Depend on ARCH_QCOM
spi: efm32: Update binding document to make "efm32,location" property optional
spi: omap2-mcspi: Convert to use devm_kcalloc
spi: Always check complete callback before calling it
Diffstat (limited to 'drivers/spi/spi-mpc52xx-psc.c')
-rw-r--r-- | drivers/spi/spi-mpc52xx-psc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/spi/spi-mpc52xx-psc.c b/drivers/spi/spi-mpc52xx-psc.c index 3d18d9351185..de532aa11d34 100644 --- a/drivers/spi/spi-mpc52xx-psc.c +++ b/drivers/spi/spi-mpc52xx-psc.c @@ -247,7 +247,8 @@ static void mpc52xx_psc_spi_work(struct work_struct *work) } m->status = status; - m->complete(m->context); + if (m->complete) + m->complete(m->context); if (status || !cs_change) mpc52xx_psc_spi_deactivate_cs(spi); |