diff options
-rw-r--r-- | drivers/mtd/nand/omap2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand/omap2.c index 4eea97c03b2b..16120e2dd4a3 100644 --- a/drivers/mtd/nand/omap2.c +++ b/drivers/mtd/nand/omap2.c | |||
@@ -1054,7 +1054,8 @@ out_free_info: | |||
1054 | static int omap_nand_remove(struct platform_device *pdev) | 1054 | static int omap_nand_remove(struct platform_device *pdev) |
1055 | { | 1055 | { |
1056 | struct mtd_info *mtd = platform_get_drvdata(pdev); | 1056 | struct mtd_info *mtd = platform_get_drvdata(pdev); |
1057 | struct omap_nand_info *info = mtd->priv; | 1057 | struct omap_nand_info *info = container_of(mtd, struct omap_nand_info, |
1058 | mtd); | ||
1058 | 1059 | ||
1059 | platform_set_drvdata(pdev, NULL); | 1060 | platform_set_drvdata(pdev, NULL); |
1060 | if (use_dma) | 1061 | if (use_dma) |