mtd: plat_nand: fix section error
authorThomas Chou <thomas@wytron.com.tw>
Tue, 21 Apr 2009 04:27:34 +0000 (12:27 +0800)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 5 Jun 2009 16:30:31 +0000 (17:30 +0100)
commit24b5ce20cc75603ce7c03a42116c30a17bce509a
tree531c935782c796e428a144dc5e2964510d1c92b2
parent0b6585ce05f169f10ce74329e87bd8c5070b4bb9
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>
drivers/mtd/nand/plat_nand.c