Skip to content

Commit cb54751

Browse files
Bastian HechtDavid Woodhouse
authored andcommitted
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>
1 parent 271b874 commit cb54751

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎drivers/mtd/nand/sh_flctl.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -918,6 +918,7 @@ static int __devinit flctl_probe(struct platform_device *pdev)
918918

919919
err_chip:
920920
pm_runtime_disable(&pdev->dev);
921+
iounmap(flctl->reg);
921922
err_iomap:
922923
kfree(flctl);
923924
return ret;
@@ -929,6 +930,7 @@ static int __devexit flctl_remove(struct platform_device *pdev)
929930

930931
nand_release(&flctl->mtd);
931932
pm_runtime_disable(&pdev->dev);
933+
iounmap(flctl->reg);
932934
kfree(flctl);
933935

934936
return 0;

0 commit comments

Comments
 (0)