From: Ryosuke Saito Date: Thu, 15 Mar 2012 10:19:03 +0000 (+0900) Subject: mtd: fix section mismatch for doc_probe_device X-Git-Tag: v3.4-rc1~16^2~12 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=30053b87d5b97aca28dd7a59982cbb161eaf01c6;p=karo-tx-linux.git 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 Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- diff --git a/drivers/mtd/devices/docg3.c b/drivers/mtd/devices/docg3.c index 349bbfa74d0d..f5930caa38e7 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;