1f3e7a144fdb55430e451011eec1ec379da253cf
[openwrt/staging/mkresin.git] / target / linux / lantiq / patches-3.8 / 0002-SPI-MIPS-lantiq-make-use-of-spi_finalize_current_mes.patch
1 From 8b921ffd449431543832b0e76389eb289cc78bb8 Mon Sep 17 00:00:00 2001
2 From: John Crispin <blogic@openwrt.org>
3 Date: Tue, 29 Jan 2013 21:24:17 +0100
4 Subject: [PATCH 02/40] SPI: MIPS: lantiq: make use of
5 spi_finalize_current_message
6
7 Rather than calling m->complete() directly we choose the sane way and call
8 spi_finalize_current_message instead.
9
10 Signed-off-by: Thomas Langer <thomas.langer@lantiq.com>
11 Signed-off-by: John Crispin <blogic@openwrt.org>
12 ---
13 drivers/spi/spi-falcon.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16 diff --git a/drivers/spi/spi-falcon.c b/drivers/spi/spi-falcon.c
17 index 6a6f62e..f9c66c2 100644
18 --- a/drivers/spi/spi-falcon.c
19 +++ b/drivers/spi/spi-falcon.c
20 @@ -398,7 +398,7 @@ static int falcon_sflash_xfer_one(struct spi_master *master,
21 }
22
23 m->status = ret;
24 - m->complete(m->context);
25 + spi_finalize_current_message(master);
26
27 return 0;
28 }
29 --
30 1.7.10.4
31