diff options
author | Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com> | 2008-06-27 06:09:55 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-07-21 18:16:34 -0400 |
commit | 0bf32b807ff28bb71012f60660e97e79408252ce (patch) | |
tree | 3682e7a8de16882de708ffd92c53f837ffa56b53 /drivers/usb/host | |
parent | 742120c63138651c898614001cb58cd607401eac (diff) |
usb: r8a66597-hcd: fix interrupt trigger
fix the problem that did not set IRQF_TRIGGER_ flag.
Signed-off-by: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r-- | drivers/usb/host/r8a66597-hcd.c | 7 |
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; |