Commit a50ae8c9 authored by Dario Binacchi's avatar Dario Binacchi Committed by Miquel Raynal

mtd: nand: drop EXPORT_SYMBOL_GPL for nanddev_erase()

This function is only used within this module, so it is no longer
necessary to use EXPORT_SYMBOL_GPL().
Signed-off-by: default avatarDario Binacchi <dario.binacchi@amarulasolutions.com>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20221018170205.1733958-1-dario.binacchi@amarulasolutions.com
parent 7c3fc998
...@@ -126,7 +126,7 @@ EXPORT_SYMBOL_GPL(nanddev_isreserved); ...@@ -126,7 +126,7 @@ EXPORT_SYMBOL_GPL(nanddev_isreserved);
* *
* Return: 0 in case of success, a negative error code otherwise. * Return: 0 in case of success, a negative error code otherwise.
*/ */
int nanddev_erase(struct nand_device *nand, const struct nand_pos *pos) static int nanddev_erase(struct nand_device *nand, const struct nand_pos *pos)
{ {
if (nanddev_isbad(nand, pos) || nanddev_isreserved(nand, pos)) { if (nanddev_isbad(nand, pos) || nanddev_isreserved(nand, pos)) {
pr_warn("attempt to erase a bad/reserved block @%llx\n", pr_warn("attempt to erase a bad/reserved block @%llx\n",
...@@ -136,7 +136,6 @@ int nanddev_erase(struct nand_device *nand, const struct nand_pos *pos) ...@@ -136,7 +136,6 @@ int nanddev_erase(struct nand_device *nand, const struct nand_pos *pos)
return nand->ops->erase(nand, pos); return nand->ops->erase(nand, pos);
} }
EXPORT_SYMBOL_GPL(nanddev_erase);
/** /**
* nanddev_mtd_erase() - Generic mtd->_erase() implementation for NAND devices * nanddev_mtd_erase() - Generic mtd->_erase() implementation for NAND devices
......
...@@ -999,7 +999,6 @@ static inline bool nanddev_io_iter_end(struct nand_device *nand, ...@@ -999,7 +999,6 @@ static inline bool nanddev_io_iter_end(struct nand_device *nand,
bool nanddev_isbad(struct nand_device *nand, const struct nand_pos *pos); bool nanddev_isbad(struct nand_device *nand, const struct nand_pos *pos);
bool nanddev_isreserved(struct nand_device *nand, const struct nand_pos *pos); bool nanddev_isreserved(struct nand_device *nand, const struct nand_pos *pos);
int nanddev_erase(struct nand_device *nand, const struct nand_pos *pos);
int nanddev_markbad(struct nand_device *nand, const struct nand_pos *pos); int nanddev_markbad(struct nand_device *nand, const struct nand_pos *pos);
/* ECC related functions */ /* ECC related functions */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment