[MIPS] iounmap if in vr41xx_pciu_init() pci clock is over 33MHz
authorRoel Kluin <12o3l@tiscali.nl>
Sun, 4 Nov 2007 12:00:06 +0000 (13:00 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 15 Nov 2007 23:21:49 +0000 (23:21 +0000)
iounmap if pci clock is over 33MHz.  Cosmetic because the iomap() in this
case is just a bit of address magic.

Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Acked-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/pci/pci-vr41xx.c

index 240df9e338132323305cb613b1e001f335381141..33c4f683d067063488115e720b3c0b83861e73e9 100644 (file)
@@ -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");
                pciu_write(PCICLKSELREG, QUARTER_VTCLOCK);
        else {
                printk(KERN_ERR "PCI Clock is over 33MHz.\n");
+               iounmap(pciu_base);
                return -EINVAL;
        }
 
                return -EINVAL;
        }