aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2007-11-19 17:28:14 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2007-11-28 16:58:36 -0500
commit8802bca4feed9e60d22a91cc5ccb1c4a1d8e3d71 (patch)
tree0bb23aedd1c6b8fd2338f20fea70c4e6ba1d72e4 /drivers/usb
parent899d566a6e7533cb5ad613a656c7f53a2b88abcd (diff)
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: Ben Dooks <ben-linux@fluff.org> Acked-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/gadget/s3c2410_udc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/gadget/s3c2410_udc.c b/drivers/usb/gadget/s3c2410_udc.c
index 9780f86ae8e5..5acaddabbe8f 100644
--- a/drivers/usb/gadget/s3c2410_udc.c
+++ b/drivers/usb/gadget/s3c2410_udc.c
@@ -1872,9 +1872,9 @@ static int s3c2410_udc_probe(struct platform_device *pdev)
1872 if (udc_info && udc_info->vbus_pin > 0) { 1872 if (udc_info && udc_info->vbus_pin > 0) {
1873 irq = s3c2410_gpio_getirq(udc_info->vbus_pin); 1873 irq = s3c2410_gpio_getirq(udc_info->vbus_pin);
1874 retval = request_irq(irq, s3c2410_udc_vbus_irq, 1874 retval = request_irq(irq, s3c2410_udc_vbus_irq,
1875 IRQF_DISABLED | IRQF_TRIGGER_RISING 1875 IRQF_DISABLED | IRQF_TRIGGER_RISING
1876 | IRQF_TRIGGER_FALLING, 1876 | IRQF_TRIGGER_FALLING | IRQF_SHARED,
1877 gadget_name, udc); 1877 gadget_name, udc);
1878 1878
1879 if (retval != 0) { 1879 if (retval != 0) {
1880 dev_err(dev, "can't get vbus irq %i, err %d\n", 1880 dev_err(dev, "can't get vbus irq %i, err %d\n",