Received: with ECARTIS (v1.0.0; list linux-mips); Mon, 01 Jun 2009 18:09:34 +0100 (WEST) Received: from sakura.staff.proxad.net ([213.228.1.107]:42544 "EHLO sakura.staff.proxad.net" rhost-flags-OK-OK-OK-OK) by ftp.linux-mips.org with ESMTP id S20025622AbZFARIa (ORCPT ); Mon, 1 Jun 2009 18:08:30 +0100 Received: by sakura.staff.proxad.net (Postfix, from userid 1000) id 6AE2F112408E; Mon, 1 Jun 2009 19:08:15 +0200 (CEST) From: Maxime Bizon To: linux-mips@linux-mips.org, Ralf Baechle Cc: Florian Fainelli , Maxime Bizon Subject: [PATCH] bcm63xx: use platform_get_irq in ohci-bcm63xx.c Date: Mon, 1 Jun 2009 19:08:11 +0200 Message-Id: <1243876095-8987-6-git-send-email-mbizon@freebox.fr> X-Mailer: git-send-email 1.6.0.4 In-Reply-To: <1243876095-8987-1-git-send-email-mbizon@freebox.fr> References: <1243876095-8987-1-git-send-email-mbizon@freebox.fr> Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 23122 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: mbizon@freebox.fr Precedence: bulk X-list: linux-mips As requested by USB maintainer, use platform_get_irq instead of platform_get_resource. Signed-off-by: Maxime Bizon --- drivers/usb/host/ohci-bcm63xx.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/usb/host/ohci-bcm63xx.c b/drivers/usb/host/ohci-bcm63xx.c index 74f432f..f0e4639 100644 --- a/drivers/usb/host/ohci-bcm63xx.c +++ b/drivers/usb/host/ohci-bcm63xx.c @@ -58,15 +58,15 @@ static const struct hc_driver ohci_bcm63xx_hc_driver = { static int __devinit ohci_hcd_bcm63xx_drv_probe(struct platform_device *pdev) { - struct resource *res_mem, *res_irq; + struct resource *res_mem; struct usb_hcd *hcd; struct ohci_hcd *ohci; 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; if (BCMCPU_IS_6348()) { @@ -114,7 +114,7 @@ static int __devinit ohci_hcd_bcm63xx_drv_probe(struct platform_device *pdev) OHCI_QUIRK_FRAME_NO; ohci_hcd_init(ohci); - ret = usb_add_hcd(hcd, res_irq->start, IRQF_DISABLED); + ret = usb_add_hcd(hcd, irq, IRQF_DISABLED); if (ret) goto out2; -- 1.6.0.4