|
@@ -1054,7 +1054,8 @@ out_free_info:
|
|
static int omap_nand_remove(struct platform_device *pdev)
|
|
static int omap_nand_remove(struct platform_device *pdev)
|
|
{
|
|
{
|
|
struct mtd_info *mtd = platform_get_drvdata(pdev);
|
|
struct mtd_info *mtd = platform_get_drvdata(pdev);
|
|
- struct omap_nand_info *info = mtd->priv;
|
|
|
|
|
|
+ struct omap_nand_info *info = container_of(mtd, struct omap_nand_info,
|
|
|
|
+ mtd);
|
|
|
|
|
|
platform_set_drvdata(pdev, NULL);
|
|
platform_set_drvdata(pdev, NULL);
|
|
if (use_dma)
|
|
if (use_dma)
|