mtd: nand: Export nand_reset() symbol

Message ID 20171005165319.30391-1-boris.brezillon@free-electrons.com
State Accepted
Delegated to: Boris Brezillon
Headers show
Series
  • mtd: nand: Export nand_reset() symbol
Related show

Commit Message

Boris Brezillon Oct. 5, 2017, 4:53 p.m.
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 | 1 +
 1 file changed, 1 insertion(+)

Comments

Boris Brezillon Oct. 14, 2017, 3:12 p.m. | #1
On Thu,  5 Oct 2017 18:53:19 +0200
Boris Brezillon <boris.brezillon@free-electrons.com> wrote:

> 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.

Applied.

> 
> 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 | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
> index c63e4a88a653..4c867115c53b 100644
> --- a/drivers/mtd/nand/nand_base.c
> +++ b/drivers/mtd/nand/nand_base.c
> @@ -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

Patch

diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index c63e4a88a653..4c867115c53b 100644
--- a/drivers/mtd/nand/nand_base.c
+++ b/drivers/mtd/nand/nand_base.c
@@ -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