From: Uwe Kleine-König Date: Tue, 24 Nov 2009 21:07:08 +0000 (+0100) Subject: mtd: don't use __exit_p to wrap mxcnd_remove X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=daa0f15a8dc6ef81655c7853f84a3670be7d144a;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git mtd: don't use __exit_p to wrap mxcnd_remove 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 Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c index 06c531485df9..4bc43eb6c604 100644 --- a/drivers/mtd/nand/mxc_nand.c +++ b/drivers/mtd/nand/mxc_nand.c @@ -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, };