mtd: mtk-nor: Drop bogus __init from mtk_nor_init()
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Thu Mar 24 11:59:01 PDT 2016
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=92752d9974882e2e5384e92668f02a134f9c7463
Commit: 92752d9974882e2e5384e92668f02a134f9c7463
Parent: 9146cbd52b11d4ade62dba8f238ec5e421c3fa2b
Author: Geert Uytterhoeven <geert at linux-m68k.org>
AuthorDate: Fri Jan 15 14:46:29 2016 +0100
Committer: Brian Norris <computersforpeace at gmail.com>
CommitDate: Fri Jan 15 09:47:00 2016 -0800
mtd: mtk-nor: Drop bogus __init from mtk_nor_init()
WARNING: drivers/mtd/spi-nor/mtk-quadspi.o(.text+0x77e): Section mismatch in reference from the function mtk_nor_drv_probe() to the function .init.text:mtk_nor_init()
The function mtk_nor_drv_probe() references
the function __init mtk_nor_init().
This is often because mtk_nor_drv_probe lacks a __init
annotation or the annotation of mtk_nor_init is wrong.
Drop the bogus __init from mtk_nor_init() to kill this warning.
Signed-off-by: Geert Uytterhoeven <geert at linux-m68k.org>
Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
drivers/mtd/spi-nor/mtk-quadspi.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/spi-nor/mtk-quadspi.c b/drivers/mtd/spi-nor/mtk-quadspi.c
index d5f850d..8bed1a4c 100644
--- a/drivers/mtd/spi-nor/mtk-quadspi.c
+++ b/drivers/mtd/spi-nor/mtk-quadspi.c
@@ -371,8 +371,8 @@ static int mt8173_nor_write_reg(struct spi_nor *nor, u8 opcode, u8 *buf,
return ret;
}
-static int __init mtk_nor_init(struct mt8173_nor *mt8173_nor,
- struct device_node *flash_node)
+static int mtk_nor_init(struct mt8173_nor *mt8173_nor,
+ struct device_node *flash_node)
{
int ret;
struct spi_nor *nor;
More information about the linux-mtd-cvs
mailing list