[MTD] [NAND] Remove unused variable in plat_nand_remove
authorLi Zefan <lizf@cn.fujitsu.com>
Sun, 3 Feb 2008 02:06:45 +0000 (10:06 +0800)
committerDavid Woodhouse <dwmw2@infradead.org>
Sun, 3 Feb 2008 07:31:52 +0000 (18:31 +1100)
With CONFIG_MTD_PARTITIONS not set, got this:
drivers/mtd/nand/plat_nand.c:113: warning: unused variable 'pdata'

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/nand/plat_nand.c

index cd725fc..f6d5c2a 100644 (file)
@@ -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