Skip to content

Commit

Permalink
[MIPS] iounmap if in vr41xx_pciu_init() pci clock is over 33MHz
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Roel Kluin authored and Ralf Baechle committed Nov 15, 2007
1 parent a8401fa commit bb856c5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/mips/pci/pci-vr41xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit bb856c5

Please sign in to comment.