aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/plat_nand.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/nand/plat_nand.c')
-rw-r--r--drivers/mtd/nand/plat_nand.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mtd/nand/plat_nand.c b/drivers/mtd/nand/plat_nand.c
index cd725fc5e813..f6d5c2adc4fd 100644
--- a/drivers/mtd/nand/plat_nand.c
+++ b/drivers/mtd/nand/plat_nand.c
@@ -110,7 +110,9 @@ out:
110static int __devexit plat_nand_remove(struct platform_device *pdev) 110static int __devexit plat_nand_remove(struct platform_device *pdev)
111{ 111{
112 struct plat_nand_data *data = platform_get_drvdata(pdev); 112 struct plat_nand_data *data = platform_get_drvdata(pdev);
113#ifdef CONFIG_MTD_PARTITIONS
113 struct platform_nand_data *pdata = pdev->dev.platform_data; 114 struct platform_nand_data *pdata = pdev->dev.platform_data;
115#endif
114 116
115 nand_release(&data->mtd); 117 nand_release(&data->mtd);
116#ifdef CONFIG_MTD_PARTITIONS 118#ifdef CONFIG_MTD_PARTITIONS