Skip to content

Commit

Permalink
mtd: omap2: correct 'info' pointer in 'omap_nand_remove'
Browse files Browse the repository at this point in the history
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: Vimal Singh <vimalsingh@ti.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
Vimal Singh authored and David Woodhouse committed Feb 26, 2010
1 parent bdaefc4 commit f35b6ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/mtd/nand/omap2.c
Original file line number Diff line number Diff line change
Expand Up @@ -1054,7 +1054,8 @@ static int __devinit omap_nand_probe(struct platform_device *pdev)
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)
Expand Down

0 comments on commit f35b6ed

Please sign in to comment.