summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorShinya Kuribayashi <shinya.kuribayashi.px@renesas.com>2012-05-17 20:09:53 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-05-17 11:20:34 -0700
commitda020b49fa6ee7eaf9fe359bc6089dd1848bb7d0 (patch)
treecadf4bbf2ae97978999587c43458201b3103ff52 /drivers/usb
parent123bbceebeb1174e385eab1fc2b2535dcdcc9ec3 (diff)
USB: gpio_vbus: remove IRQF_SAMPLE_RANDOM use
IRQF_SAMPLE_RANDOM has been scheduled for removal for years (it was scheduled by July 2009, but not yet remvoed). I'm not sure when it's going to take place, but would be better to remove it now. Thanks for scripts/checkpatch secretary. Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi.px@renesas.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb')
-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 8853cb1fd9d..4e393ef2f25 100644
--- a/drivers/usb/otg/gpio_vbus.c
+++ b/drivers/usb/otg/gpio_vbus.c
@@ -53,8 +53,7 @@ struct gpio_vbus_data {
* edges might be workable.
*/
#define VBUS_IRQ_FLAGS \
- ( IRQF_SAMPLE_RANDOM | IRQF_SHARED \
- | IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING )
+ (IRQF_SHARED | IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING)
/* interface to regulator framework */
@@ -280,7 +279,7 @@ static int __init gpio_vbus_probe(struct platform_device *pdev)
if (res) {
irq = res->start;
res->flags &= IRQF_TRIGGER_MASK;
- res->flags |= IRQF_SAMPLE_RANDOM | IRQF_SHARED;
+ res->flags |= IRQF_SHARED;
} else
irq = gpio_to_irq(gpio);