提交 cb54751d 编写于 作者: B Bastian Hecht 提交者: David Woodhouse

mtd: sh_flctl: Add missing iounmap()

Add the unmapping for the error case and for the driver removal.
Signed-off-by: NBastian Hecht <hechtb@gmail.com>
Acked-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: NArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
上级 271b874b
...@@ -918,6 +918,7 @@ static int __devinit flctl_probe(struct platform_device *pdev) ...@@ -918,6 +918,7 @@ static int __devinit flctl_probe(struct platform_device *pdev)
err_chip: err_chip:
pm_runtime_disable(&pdev->dev); pm_runtime_disable(&pdev->dev);
iounmap(flctl->reg);
err_iomap: err_iomap:
kfree(flctl); kfree(flctl);
return ret; return ret;
...@@ -929,6 +930,7 @@ static int __devexit flctl_remove(struct platform_device *pdev) ...@@ -929,6 +930,7 @@ static int __devexit flctl_remove(struct platform_device *pdev)
nand_release(&flctl->mtd); nand_release(&flctl->mtd);
pm_runtime_disable(&pdev->dev); pm_runtime_disable(&pdev->dev);
iounmap(flctl->reg);
kfree(flctl); kfree(flctl);
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册