[PATCH] fix plat_nand compilation

Vitaly Wool vitalywool at gmail.com
Thu May 31 08:33:19 EDT 2007


Hi,

this patch fixes plat_nand compilation problem with modern gcc compilers.

 drivers/mtd/nand/plat_nand.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

Signed-off-by: Vitaly Wool <vitalywool at gmail.com>

Index: linux-2.6/drivers/mtd/nand/plat_nand.c
===================================================================
--- linux-2.6.orig/drivers/mtd/nand/plat_nand.c
+++ linux-2.6/drivers/mtd/nand/plat_nand.c
@@ -125,7 +125,7 @@ static int __devexit plat_nand_remove(st
 
 static struct platform_driver plat_nand_driver = {
 	.probe		= plat_nand_probe,
-	.remove		= plat_nand_remove,
+	.remove		= __devexit_p(plat_nand_remove),
 	.driver		= {
 		.name	= "gen_nand",
 		.owner	= THIS_MODULE,






More information about the linux-mtd mailing list