Commit 30053b87 authored by Ryosuke Saito's avatar Ryosuke Saito Committed by David Woodhouse

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: default avatarRyosuke Saito <raitosyo@gmail.com>
Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 2a5dbead
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment