From: Paul Mundt <lethal@linux-sh.org>
Date: Mon, 1 Nov 2010 21:01:27 +0000 (-0400)
Subject: usb: ohci-sh: Set IRQ as shared.
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9cc563968066b55b067bcff132e4d566b020687d;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git

usb: ohci-sh: Set IRQ as shared.

The SH USB interface has both OHCI and EHCI modes that share the
same interrupt. Flag the OHCI IRQ as shared in preparation for EHCI
support.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
---

diff --git a/drivers/usb/host/ohci-sh.c b/drivers/usb/host/ohci-sh.c
index 0b35d22cc70e..f47867ff78c7 100644
--- a/drivers/usb/host/ohci-sh.c
+++ b/drivers/usb/host/ohci-sh.c
@@ -109,7 +109,7 @@ static int ohci_hcd_sh_probe(struct platform_device *pdev)
 	hcd->regs = (void __iomem *)res->start;
 	hcd->rsrc_start = res->start;
 	hcd->rsrc_len = resource_size(res);
-	ret = usb_add_hcd(hcd, irq, IRQF_DISABLED);
+	ret = usb_add_hcd(hcd, irq, IRQF_DISABLED | IRQF_SHARED);
 	if (ret != 0) {
 		err("Failed to add hcd");
 		usb_put_hcd(hcd);