mtd: don't use __exit_p to wrap mxcnd_remove
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 24 Nov 2009 21:07:08 +0000 (22:07 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 30 Nov 2009 10:02:24 +0000 (10:02 +0000)
The function mxcnd_remove is defined using __devexit, so don't use
__exit_p but __devexit_p to wrap it.

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/mxc_nand.c

index 06c531485df9519df8a21b2a0ea1209839c7f8fd..4bc43eb6c604bceb12cfe962669035b9714b8e2d 100644 (file)
@@ -1099,7 +1099,7 @@ static struct platform_driver mxcnd_driver = {
        .driver = {
                   .name = DRIVER_NAME,
                   },
-       .remove = __exit_p(mxcnd_remove),
+       .remove = __devexit_p(mxcnd_remove),
        .suspend = mxcnd_suspend,
        .resume = mxcnd_resume,
 };