Skip to contentSkip to conversation

MTD/NAND: fix a compile warning in plat_nand_remove

PATCH New Li Zefan 1 participant 1 message Feb 3, 2008

Subsystems (2)
lore
Share & tools
lore

Li Zefan

author
#0 lore raw

PATCH 1/1 MTD/NAND: fix a compile warning in plat_nand_remove

With CONFIG_MTD_PARTITIONS not set, got this:
drivers/mtd/nand/plat_nand.c:113: warning: unused variable 'pdata'

---
 drivers/mtd/nand/plat_nand.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/mtd/nand/plat_nand.c +2 -0
index cd725fc..f6d5c2a 100644
@@ -110,7 +110,9 @@ out:
 static int __devexit plat_nand_remove(struct platform_device *pdev)
 {
 	struct plat_nand_data *data = platform_get_drvdata(pdev);
+#ifdef CONFIG_MTD_PARTITIONS
 	struct platform_nand_data *pdata = pdev->dev.platform_data;
+#endif
 
 	nand_release(&data->mtd);
 #ifdef CONFIG_MTD_PARTITIONS
Signature · 1 line
1.5.4.rc3