]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/mtd/nand/plat_nand.c
[MTD] [NAND] Remove unused variable in plat_nand_remove
[linux-2.6-omap-h63xx.git] / drivers / mtd / nand / plat_nand.c
index cd725fc5e813e7b11f03207944fbb14be33229a6..f6d5c2adc4fd41171c892859b96e85c10f45c369 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