summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-01-05 18:08:33 +0000
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-01-05 18:08:33 +0000
commitc63a29ee7f4273e24a33575fbd22739b8ef6e9b2 (patch)
treefeecf23f4f9bc4ffa91304070ac37d697971bbef
parent978d04d68003d9d6a6d651d4aaf702763a8a8c9d (diff)
ar71xx: fix sections mismatch warnings in the nand drivers
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29667 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--target/linux/ar71xx/files/drivers/mtd/nand/rb4xx_nand.c2
-rw-r--r--target/linux/ar71xx/files/drivers/mtd/nand/rb750_nand.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/ar71xx/files/drivers/mtd/nand/rb4xx_nand.c b/target/linux/ar71xx/files/drivers/mtd/nand/rb4xx_nand.c
index 664f7dfcc..f73137d10 100644
--- a/target/linux/ar71xx/files/drivers/mtd/nand/rb4xx_nand.c
+++ b/target/linux/ar71xx/files/drivers/mtd/nand/rb4xx_nand.c
@@ -134,7 +134,7 @@ static void rb4xx_nand_read_buf(struct mtd_info *mtd, unsigned char *buf,
pr_err("rb4xx_nand: read buf failed, err=%d\n", err);
}
-static int __init rb4xx_nand_probe(struct platform_device *pdev)
+static int __devinit rb4xx_nand_probe(struct platform_device *pdev)
{
struct rb4xx_nand_info *info;
int ret;
diff --git a/target/linux/ar71xx/files/drivers/mtd/nand/rb750_nand.c b/target/linux/ar71xx/files/drivers/mtd/nand/rb750_nand.c
index b6adb41d9..79e8a060c 100644
--- a/target/linux/ar71xx/files/drivers/mtd/nand/rb750_nand.c
+++ b/target/linux/ar71xx/files/drivers/mtd/nand/rb750_nand.c
@@ -260,7 +260,7 @@ static void __init rb750_nand_gpio_init(void)
rb750_latch_change(~out & RB750_NAND_IO0, out & RB750_NAND_IO0);
}
-static int __init rb750_nand_probe(struct platform_device *pdev)
+static int __devinit rb750_nand_probe(struct platform_device *pdev)
{
struct rb750_nand_info *info;
int ret;