]> git.karo-electronics.de Git - linux-beck.git/commitdiff
spi/mips-lantiq: make use of spi_finalize_current_message
authorJohn Crispin <blogic@openwrt.org>
Wed, 30 Jan 2013 20:33:30 +0000 (21:33 +0100)
committerGrant Likely <grant.likely@secretlab.ca>
Tue, 5 Feb 2013 17:16:41 +0000 (17:16 +0000)
Rather than calling m->complete() directly we choose the sane way and call
spi_finalize_current_message instead.

Signed-off-by: Thomas Langer <thomas.langer@lantiq.com>
Signed-off-by: John Crispin <blogic@openwrt.org>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/spi-falcon.c

index 6a6f62ec284091d8c1766ca2940d57a773de5c0b..f9c66c224a17601bfd02effdb09f1e039c28a6cd 100644 (file)
@@ -398,7 +398,7 @@ static int falcon_sflash_xfer_one(struct spi_master *master,
        }
 
        m->status = ret;
-       m->complete(m->context);
+       spi_finalize_current_message(master);
 
        return 0;
 }