mtd: move excite_nand_remove to .devexit.text
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 24 Nov 2009 21:06:58 +0000 (22:06 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 30 Nov 2009 10:01:40 +0000 (10:01 +0000)
The function excite_nand_remove is used only wrapped by __devexit_p so
define it using __devexit.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/excite_nandflash.c

index 72446fb48d4b90321be0c3611d57d8a9e02877f3..af6a6a5399e100f54ec4dcd9d1ab8ea3f424c987 100644 (file)
@@ -128,7 +128,7 @@ static int excite_nand_devready(struct mtd_info *mtd)
  * The binding to the mtd and all allocated
  * resources are released.
  */
-static int __exit excite_nand_remove(struct platform_device *dev)
+static int __devexit excite_nand_remove(struct platform_device *dev)
 {
        struct excite_nand_drvdata * const this = platform_get_drvdata(dev);