Skip to content

Commit

Permalink
mtd: fix section mismatch for doc_probe_device
Browse files Browse the repository at this point in the history
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@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
Ryosuke Saito authored and David Woodhouse committed Mar 27, 2012
1 parent 2a5dbea commit 30053b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/mtd/devices/docg3.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 30053b8

Please sign in to comment.