mtd: nand: Export nand_reset() symbol
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Thu, 5 Oct 2017 16:53:19 +0000 (18:53 +0200)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Sat, 14 Oct 2017 13:15:10 +0000 (15:15 +0200)
Commit 6e532afaca8e ("mtd: nand: atmel: Add PM ops") started to use the
nand_reset() function which was not yet exported by the NAND framework
(because it was only used internally before that). Export this symbol
to avoid build errors when the driver is enabled as a module.

Fixes: 6e532afaca8e ("mtd: nand: atmel: Add PM ops")
Cc: <stable@vger.kernel.org>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/nand_base.c

index c63e4a8..4c86711 100644 (file)
@@ -1244,6 +1244,7 @@ int nand_reset(struct nand_chip *chip, int chipnr)
 
        return 0;
 }
+EXPORT_SYMBOL_GPL(nand_reset);
 
 /**
  * nand_check_erased_buf - check if a buffer contains (almost) only 0xff data