diff options
author | Wei Yongjun <[email protected]> | 2020-07-21 23:16:57 +0800 |
---|---|---|
committer | Miquel Raynal <[email protected]> | 2020-09-30 16:44:16 +0200 |
commit | ab78e6a6cef34d0b7eefd0d8a78308cfe7bd7737 (patch) | |
tree | ca7f2d6f2e16f9f445362ac565b9c5a8d8c05817 | |
parent | ab16f54ef3cdb6bbc06a36f636a89e6db8a6cea3 (diff) |
mtd: rawnand: pasemi: Make pasemi_device_ready() static
The sparse tool complains as follows:
drivers/mtd/nand/raw/pasemi_nand.c:71:5: warning:
symbol 'pasemi_device_ready' was not declared. Should it be static?
This function is not used outside of pasemi_nand.c, so this commit
marks it static.
Reported-by: Hulk Robot <[email protected]>
Signed-off-by: Wei Yongjun <[email protected]>
Signed-off-by: Miquel Raynal <[email protected]>
Link: https://lore.kernel.org/linux-mtd/[email protected]
-rw-r--r-- | drivers/mtd/nand/raw/pasemi_nand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/raw/pasemi_nand.c b/drivers/mtd/nand/raw/pasemi_nand.c index 155e8c8f61e2..2b8f155cc0c5 100644 --- a/drivers/mtd/nand/raw/pasemi_nand.c +++ b/drivers/mtd/nand/raw/pasemi_nand.c @@ -68,7 +68,7 @@ static void pasemi_hwcontrol(struct nand_chip *chip, int cmd, inl(lpcctl); } -int pasemi_device_ready(struct nand_chip *chip) +static int pasemi_device_ready(struct nand_chip *chip) { return !!(inl(lpcctl) & LBICTRL_LPCCTL_NR); } |