diff options
| -rw-r--r-- | drivers/spi/spi-pxa2xx.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/spi/spi-pxa2xx.c b/drivers/spi/spi-pxa2xx.c index 86c155aea0cf..0ce82db8e484 100644 --- a/drivers/spi/spi-pxa2xx.c +++ b/drivers/spi/spi-pxa2xx.c | |||
| @@ -570,9 +570,8 @@ static void giveback(struct driver_data *drv_data) | |||
| 570 | /* see if the next and current messages point | 570 | /* see if the next and current messages point |
| 571 | * to the same chip | 571 | * to the same chip |
| 572 | */ | 572 | */ |
| 573 | if (next_msg && next_msg->spi != msg->spi) | 573 | if ((next_msg && next_msg->spi != msg->spi) || |
| 574 | next_msg = NULL; | 574 | msg->state == ERROR_STATE) |
| 575 | if (!next_msg || msg->state == ERROR_STATE) | ||
| 576 | cs_deassert(drv_data); | 575 | cs_deassert(drv_data); |
| 577 | } | 576 | } |
| 578 | 577 | ||
