mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 04:12:04 -04:00
mtd: sh_flctl: Add missing iounmap()
Add the unmapping for the error case and for the driver removal. Signed-off-by: Bastian Hecht <hechtb@gmail.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
This commit is contained in:
parent
271b874ba1
commit
cb54751d7a
1 changed files with 2 additions and 0 deletions
|
|
@ -918,6 +918,7 @@ static int __devinit flctl_probe(struct platform_device *pdev)
|
|||
|
||||
err_chip:
|
||||
pm_runtime_disable(&pdev->dev);
|
||||
iounmap(flctl->reg);
|
||||
err_iomap:
|
||||
kfree(flctl);
|
||||
return ret;
|
||||
|
|
@ -929,6 +930,7 @@ static int __devexit flctl_remove(struct platform_device *pdev)
|
|||
|
||||
nand_release(&flctl->mtd);
|
||||
pm_runtime_disable(&pdev->dev);
|
||||
iounmap(flctl->reg);
|
||||
kfree(flctl);
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue