projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libata: use flush_work()
[powerpc.git]
/
drivers
/
spi
/
spi_mpc83xx.c
diff --git
a/drivers/spi/spi_mpc83xx.c
b/drivers/spi/spi_mpc83xx.c
index
ff0b048
..
e9798bf
100644
(file)
--- a/
drivers/spi/spi_mpc83xx.c
+++ b/
drivers/spi/spi_mpc83xx.c
@@
-112,6
+112,8
@@
u32 mpc83xx_spi_tx_buf_##type(struct mpc83xx_spi *mpc83xx_spi) \
{ \
u32 data; \
const type * tx = mpc83xx_spi->tx; \
+ if (!tx) \
+ return 0; \
data = *tx++; \
mpc83xx_spi->tx = tx; \
return data; \