Skip to content

Commit

Permalink
mtd: nomadik_nand: add missing nand_release in nomadik_nand_remove
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
  • Loading branch information
Axel Lin authored and Artem Bityutskiy committed Sep 11, 2011
1 parent 43c6871 commit d80932b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/mtd/nand/nomadik_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ static int nomadik_nand_remove(struct platform_device *pdev)
pdata->exit();

if (host) {
nand_release(&host->mtd);
iounmap(host->cmd_va);
iounmap(host->data_va);
iounmap(host->addr_va);
Expand Down

0 comments on commit d80932b

Please sign in to comment.