projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
spi: spi-mem: Check if exec_op function is set before calling it
[platform/kernel/u-boot.git]
/
drivers
/
spi
/
spi-mem.c
diff --git
a/drivers/spi/spi-mem.c
b/drivers/spi/spi-mem.c
index
1bb0987
..
b86eee7
100644
(file)
--- a/
drivers/spi/spi-mem.c
+++ b/
drivers/spi/spi-mem.c
@@
-214,7
+214,7
@@
int spi_mem_exec_op(struct spi_slave *slave, const struct spi_mem_op *op)
if (ret < 0)
return ret;
- if (ops->mem_ops) {
+ if (ops->mem_ops
&& ops->mem_ops->exec_op
) {
#ifndef __UBOOT__
/*
* Flush the message queue before executing our SPI memory