Skip to contentSkip to conversation

fix plat_nand compilation

PATCH New Vitaly Wool 1 participant 1 message May 31, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix plat_nand compilation

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(-)
drivers/mtd/nand/plat_nand.c +0 -0
Index: 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,