dect
/
linux-2.6
Archived
13
0
Fork 0

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>
This commit is contained in:
Shinya Kuribayashi 2012-05-17 20:09:53 +09:00 committed by Greg Kroah-Hartman
parent 123bbceebe
commit da020b49fa
1 changed files with 2 additions and 3 deletions

View File

@ -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);