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

Commit bb856c5b authored by Roel Kluin's avatar Roel Kluin Committed by Ralf Baechle
Browse files

[MIPS] iounmap if in vr41xx_pciu_init() pci clock is over 33MHz



iounmap if pci clock is over 33MHz.  Cosmetic because the iomap() in this
case is just a bit of address magic.

Signed-off-by: default avatarRoel Kluin <12o3l@tiscali.nl>
Acked-by: default avatarYoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent a8401fa5
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -154,6 +154,7 @@ static int __init vr41xx_pciu_init(void)
		pciu_write(PCICLKSELREG, QUARTER_VTCLOCK);
	else {
		printk(KERN_ERR "PCI Clock is over 33MHz.\n");
		iounmap(pciu_base);
		return -EINVAL;
	}