Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mtd: plat_nand: fix section error

With CONFIG_HOTPLUG=n, the following eror occurred during link:
local symbol 0: discarded in section `.devexit.text' from
drivers/built-in.o

It was caused by improper section reference. The __devexit_p()
should be added to the .remove function.

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>

authored by

Thomas Chou and committed by
David Woodhouse
24b5ce20 0b6585ce

+1 -1
+1 -1
drivers/mtd/nand/plat_nand.c
··· 128 128 129 129 static struct platform_driver plat_nand_driver = { 130 130 .probe = plat_nand_probe, 131 - .remove = plat_nand_remove, 131 + .remove = __devexit_p(plat_nand_remove), 132 132 .driver = { 133 133 .name = "gen_nand", 134 134 .owner = THIS_MODULE,