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

Commit 8802bca4 authored by Ben Dooks's avatar Ben Dooks Committed by Greg Kroah-Hartman
Browse files

USB: s3c2410 gadget: allow sharing of vbus irq



If another driver wants to claim the vbus pin, say
to notify the user of an connect/disconnect then allow
the IRQ to be shared by specifiying IRQ_SHARED in the
flags.

Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
Acked-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 899d566a
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1873,7 +1873,7 @@ static int s3c2410_udc_probe(struct platform_device *pdev)
		irq = s3c2410_gpio_getirq(udc_info->vbus_pin);
		retval = request_irq(irq, s3c2410_udc_vbus_irq,
				     IRQF_DISABLED | IRQF_TRIGGER_RISING
				| IRQF_TRIGGER_FALLING,
				     | IRQF_TRIGGER_FALLING | IRQF_SHARED,
				     gadget_name, udc);

		if (retval != 0) {