|
@@ -110,7 +110,9 @@ out:
|
|
static int __devexit plat_nand_remove(struct platform_device *pdev)
|
|
static int __devexit plat_nand_remove(struct platform_device *pdev)
|
|
{
|
|
{
|
|
struct plat_nand_data *data = platform_get_drvdata(pdev);
|
|
struct plat_nand_data *data = platform_get_drvdata(pdev);
|
|
|
|
+#ifdef CONFIG_MTD_PARTITIONS
|
|
struct platform_nand_data *pdata = pdev->dev.platform_data;
|
|
struct platform_nand_data *pdata = pdev->dev.platform_data;
|
|
|
|
+#endif
|
|
|
|
|
|
nand_release(&data->mtd);
|
|
nand_release(&data->mtd);
|
|
#ifdef CONFIG_MTD_PARTITIONS
|
|
#ifdef CONFIG_MTD_PARTITIONS
|