mtd: fix section mismatch for doc_probe_device
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Mon Mar 26 20:59:19 EDT 2012
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=30053b87d5b97aca28dd7a59982cbb161eaf01c6
Commit: 30053b87d5b97aca28dd7a59982cbb161eaf01c6
Parent: 2a5dbead29a7c081a47133eb428440147a6d8d5a
Author: Ryosuke Saito <raitosyo at gmail.com>
AuthorDate: Thu Mar 15 19:19:03 2012 +0900
Committer: David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Tue Mar 27 01:00:55 2012 +0100
mtd: fix section mismatch for doc_probe_device
doc_probe_device() is only called from docg3_probe() which is in .init.text,
so it must be in the same section to avoid a section mismatch warning.
Signed-off-by: Ryosuke Saito <raitosyo at gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy at linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
drivers/mtd/devices/docg3.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/devices/docg3.c b/drivers/mtd/devices/docg3.c
index 349bbfa..f5930ca 100644
--- a/drivers/mtd/devices/docg3.c
+++ b/drivers/mtd/devices/docg3.c
@@ -1847,8 +1847,8 @@ static void __init doc_set_driver_info(int chip_id, struct mtd_info *mtd)
* if a memory allocation failed. If floor 0 is checked, a reset of the ASIC is
* launched.
*/
-static struct mtd_info *doc_probe_device(void __iomem *base, int floor,
- struct device *dev)
+static struct mtd_info * __init
+doc_probe_device(void __iomem *base, int floor, struct device *dev)
{
int ret, bbt_nbpages;
u16 chip_id, chip_id_inv;
More information about the linux-mtd-cvs
mailing list