Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f35b6eda authored by Vimal Singh's avatar Vimal Singh Committed by David Woodhouse
Browse files

mtd: omap2: correct 'info' pointer in 'omap_nand_remove'



Removing OMAP NAND driver, when loaded as a module, gives error and
does not get success. This fixes this and makes driver loadable and
removable run time.

Signed-off-by: default avatarVimal Singh <vimalsingh@ti.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent bdaefc41
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1054,7 +1054,8 @@ out_free_info:
static int omap_nand_remove(struct platform_device *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);
	if (use_dma)