| To: | Maxime Bizon <mbizon@freebox.fr> |
|---|---|
| Subject: | Re: [PATCH 08/10] bcm63xx: use platform_get_irq in ehci-bcm63xx.c |
| From: | Florian Fainelli <florian@openwrt.org> |
| Date: | Mon, 1 Jun 2009 20:12:05 +0200 |
| Cc: | linux-mips@linux-mips.org, Ralf Baechle <ralf@linux-mips.org> |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:from:to:subject:date :user-agent:cc:references:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; bh=46aFMGEgFNOkmMlgxr3iOions2dAjUyKanwN03FfLO0=; b=HG6o9Yum+kmsGvoGg3yNZZxu2n5ce7yhOpnvGObV5R4Cpivk+pqelazMYuzrh6n2p1 Rd9vvqxX/5wmKMrWRzTW+KgizZ427xplyD444D8sZ53zjgRXpGtGmPDvDkg5d9nDFFjA eIVfNjEPPwVGCkx0FIwAESA0U6xRbggmEeOzU= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:content-transfer-encoding :content-disposition:message-id; b=IZm3xZnSiG/7cNvP5aRmDtFrbKWwhv2+Ru2imzHjMko5kW+i9tuVSpgNSOmFaPWgn2 ENNJmpWlulCZxfRot86M/wKDKOxC696PRpkh+igC/qXkMs1KLKrInDQyxhG++yEW/+3U SSfg5/DKE/faVjFcahlixUV3jtQdZ3/K2bvfE= |
| In-reply-to: | <1243876918-9905-9-git-send-email-mbizon@freebox.fr> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <1243876918-9905-1-git-send-email-mbizon@freebox.fr> <1243876918-9905-9-git-send-email-mbizon@freebox.fr> |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | KMail/1.9.9 |
Le Monday 01 June 2009 19:21:56 Maxime Bizon, vous avez écrit :
> As requested by USB maintainer, use platform_get_irq instead of
> platform_get_resource.
>
> Signed-off-by: Maxime Bizon <mbizon@freebox.fr>
Acked-by: Florian Fainelli <florian@openwrt.org>
> ---
> drivers/usb/host/ehci-bcm63xx.c | 10 +++++-----
> 1 files changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/usb/host/ehci-bcm63xx.c
> b/drivers/usb/host/ehci-bcm63xx.c index 2fef571..0aba0f9 100644
> --- a/drivers/usb/host/ehci-bcm63xx.c
> +++ b/drivers/usb/host/ehci-bcm63xx.c
> @@ -62,15 +62,15 @@ static const struct hc_driver ehci_bcm63xx_hc_driver =
> {
>
> static int __devinit ehci_hcd_bcm63xx_drv_probe(struct platform_device
> *pdev) {
> - struct resource *res_mem, *res_irq;
> + struct resource *res_mem;
> struct usb_hcd *hcd;
> struct ehci_hcd *ehci;
> u32 reg;
> - int ret;
> + int ret, irq;
>
> res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> - res_irq = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
> - if (!res_mem || !res_irq)
> + irq = platform_get_irq(pdev, 0);;
> + if (!res_mem || irq < 0)
> return -ENODEV;
>
> reg = bcm_rset_readl(RSET_USBH_PRIV, USBH_PRIV_SWAP_REG);
> @@ -109,7 +109,7 @@ static int __devinit ehci_hcd_bcm63xx_drv_probe(struct
> platform_device *pdev) ehci->hcs_params = ehci_readl(ehci,
> &ehci->caps->hcs_params);
> ehci->sbrn = 0x20;
>
> - ret = usb_add_hcd(hcd, res_irq->start, IRQF_DISABLED);
> + ret = usb_add_hcd(hcd, irq, IRQF_DISABLED);
> if (ret)
> goto out2;
--
Best regards, Florian Fainelli
Email : florian@openwrt.org
http://openwrt.org
-------------------------------
|
| Previous by Date: | Re: [PATCH 07/10] bcm63xx: clarify meaning of the magical value in ohci-bcm63xx.c, Florian Fainelli |
|---|---|
| Next by Date: | Re: [PATCH 09/10] bcm63xx: don't set bus type in ehci-bcm63xx.c, Florian Fainelli |
| Previous by Thread: | [PATCH 08/10] bcm63xx: use platform_get_irq in ehci-bcm63xx.c, Maxime Bizon |
| Next by Thread: | [PATCH 09/10] bcm63xx: don't set bus type in ehci-bcm63xx.c, Maxime Bizon |
| Indexes: | [Date] [Thread] [Top] [All Lists] |