linux-mips
[Top] [All Lists]

Re: [PATCH] iounmap if in vr41xx_pciu_init() pci clock is over 33MHz

To: Roel Kluin <12o3l@tiscali.nl>
Subject: Re: [PATCH] iounmap if in vr41xx_pciu_init() pci clock is over 33MHz
From: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Date: Mon, 5 Nov 2007 07:27:23 +0900
Cc: yoichi_yuasa@tripeaks.co.jp, linux-mips@linux-mips.org
In-reply-to: <472DB446.3020804@tiscali.nl>
Organization: TriPeaks Corporation
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <472DB446.3020804@tiscali.nl>
Sender: linux-mips-bounce@linux-mips.org
On Sun, 04 Nov 2007 13:00:06 +0100
Roel Kluin <12o3l@tiscali.nl> wrote:

> iounmap if pci clock is over 33MHz
> 
> Signed-off-by: Roel Kluin <12o3l@tiscali.nl>

Acked-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>

> ---
> diff --git a/arch/mips/pci/pci-vr41xx.c b/arch/mips/pci/pci-vr41xx.c
> index 240df9e..33c4f68 100644
> --- a/arch/mips/pci/pci-vr41xx.c
> +++ b/arch/mips/pci/pci-vr41xx.c
> @@ -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;
>       }
>  
> 
> 

<Prev in Thread] Current Thread [Next in Thread>