Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cb54751d authored by Bastian Hecht's avatar Bastian Hecht Committed by David Woodhouse
Browse files

mtd: sh_flctl: Add missing iounmap()



Add the unmapping for the error case and for the driver removal.

Signed-off-by: default avatarBastian Hecht <hechtb@gmail.com>
Acked-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 271b874b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;