Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit da020b49 authored by Shinya Kuribayashi's avatar Shinya Kuribayashi Committed by Greg Kroah-Hartman
Browse files

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: default avatarShinya Kuribayashi <shinya.kuribayashi.px@renesas.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 123bbcee
Loading
Loading
Loading
Loading
+2 −3
Original line number Original line Diff line number Diff line
@@ -53,8 +53,7 @@ struct gpio_vbus_data {
 * edges might be workable.
 * edges might be workable.
 */
 */
#define VBUS_IRQ_FLAGS \
#define VBUS_IRQ_FLAGS \
	( IRQF_SAMPLE_RANDOM | IRQF_SHARED \
	(IRQF_SHARED | IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING)
	| IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING )




/* interface to regulator framework */
/* interface to regulator framework */
@@ -280,7 +279,7 @@ static int __init gpio_vbus_probe(struct platform_device *pdev)
	if (res) {
	if (res) {
		irq = res->start;
		irq = res->start;
		res->flags &= IRQF_TRIGGER_MASK;
		res->flags &= IRQF_TRIGGER_MASK;
		res->flags |= IRQF_SAMPLE_RANDOM | IRQF_SHARED;
		res->flags |= IRQF_SHARED;
	} else
	} else
		irq = gpio_to_irq(gpio);
		irq = gpio_to_irq(gpio);