aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/host/r8a66597-hcd.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/usb/host/r8a66597-hcd.c b/drivers/usb/host/r8a66597-hcd.c
index a93d80b56974..4db0107f3178 100644
--- a/drivers/usb/host/r8a66597-hcd.c
+++ b/drivers/usb/host/r8a66597-hcd.c
@@ -2244,6 +2244,7 @@ static int __init r8a66597_probe(struct platform_device *pdev)
2244 struct r8a66597 *r8a66597; 2244 struct r8a66597 *r8a66597;
2245 int ret = 0; 2245 int ret = 0;
2246 int i; 2246 int i;
2247 unsigned long irq_trigger;
2247 2248
2248 if (pdev->dev.dma_mask) { 2249 if (pdev->dev.dma_mask) {
2249 ret = -EINVAL; 2250 ret = -EINVAL;
@@ -2302,7 +2303,11 @@ static int __init r8a66597_probe(struct platform_device *pdev)
2302 INIT_LIST_HEAD(&r8a66597->child_device); 2303 INIT_LIST_HEAD(&r8a66597->child_device);
2303 2304
2304 hcd->rsrc_start = res->start; 2305 hcd->rsrc_start = res->start;
2305 ret = usb_add_hcd(hcd, irq, IRQF_DISABLED); 2306 if (irq_sense == INTL)
2307 irq_trigger = IRQF_TRIGGER_LOW;
2308 else
2309 irq_trigger = IRQF_TRIGGER_FALLING;
2310 ret = usb_add_hcd(hcd, irq, IRQF_DISABLED | irq_trigger);
2306 if (ret != 0) { 2311 if (ret != 0) {
2307 err("Failed to add hcd"); 2312 err("Failed to add hcd");
2308 goto clean_up; 2313 goto clean_up;