iounmap if in vr41xx_pciu_init() pci clock is over 33MHz
PATCH 1/1 iounmap if in vr41xx_pciu_init() pci clock is over 33MHz
iounmap if pci clock is over 33MHz
Signed-off-by Roel Kluin <[email protected]>
---
arch/mips/pci/pci-vr41xx.c +1 -0
@@ -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 ; }
Quoted 3 lines · On Sun, 04 Nov 2007 13:00:06 +0100 Roel Kluin <[email protected]> wrote:
iounmap if pci clock is over 33MHz
Signed-off-by Roel Kluin <[email protected]>
Acked-by Yoichi Yuasa <[email protected]>
Quoted 15 lines
---
arch/mips/pci/pci-vr41xx.c +1
-0@@ -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 ; }
Ralf Baechle
AppliedQuoted 1 line · Roel Kluin
iounmap if pci clock is over 33MHz
Applied. Note that this is purely cosmetic; for 64-bit kernels or anything in the low 512MB of physcial address space ioremap on a 32-bit kernel ioremap can never fail on MIPS and iounmap is a nop in this case.
Ralf