aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/usb/otg/gpio_vbus.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/usb/otg/gpio_vbus.c b/drivers/usb/otg/gpio_vbus.c
index 8853cb1fd9d7..4e393ef2f254 100644
--- a/drivers/usb/otg/gpio_vbus.c
+++ b/drivers/usb/otg/gpio_vbus.c
@@ -53,8 +53,7 @@ struct gpio_vbus_data {
53 * edges might be workable. 53 * edges might be workable.
54 */ 54 */
55#define VBUS_IRQ_FLAGS \ 55#define VBUS_IRQ_FLAGS \
56 ( IRQF_SAMPLE_RANDOM | IRQF_SHARED \ 56 (IRQF_SHARED | IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING)
57 | IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING )
58 57
59 58
60/* interface to regulator framework */ 59/* interface to regulator framework */
@@ -280,7 +279,7 @@ static int __init gpio_vbus_probe(struct platform_device *pdev)
280 if (res) { 279 if (res) {
281 irq = res->start; 280 irq = res->start;
282 res->flags &= IRQF_TRIGGER_MASK; 281 res->flags &= IRQF_TRIGGER_MASK;
283 res->flags |= IRQF_SAMPLE_RANDOM | IRQF_SHARED; 282 res->flags |= IRQF_SHARED;
284 } else 283 } else
285 irq = gpio_to_irq(gpio); 284 irq = gpio_to_irq(gpio);
286 285