aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/otg/twl4030-usb.c
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2010-09-29 03:55:49 -0400
committerFelipe Balbi <balbi@ti.com>2011-02-18 07:05:54 -0500
commitcccad6d4b103e53fb3d1fc1467f654ecb572d047 (patch)
tree83403c73c85247aeffa82ceaea6d9a5ec726235d /drivers/usb/otg/twl4030-usb.c
parent002eda1348788f623dc42231dcda5f591d753124 (diff)
usb: otg: notifier: switch to atomic notifier
most of our notifications, will be called from IRQ context, so an atomic notifier suits the job better. Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/otg/twl4030-usb.c')
-rw-r--r--drivers/usb/otg/twl4030-usb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/otg/twl4030-usb.c b/drivers/usb/otg/twl4030-usb.c
index 6ca505f333e4..2362d8352bc8 100644
--- a/drivers/usb/otg/twl4030-usb.c
+++ b/drivers/usb/otg/twl4030-usb.c
@@ -512,7 +512,7 @@ static irqreturn_t twl4030_usb_irq(int irq, void *_twl)
512 else 512 else
513 twl4030_phy_resume(twl); 513 twl4030_phy_resume(twl);
514 514
515 blocking_notifier_call_chain(&twl->otg.notifier, status, 515 atomic_notifier_call_chain(&twl->otg.notifier, status,
516 twl->otg.gadget); 516 twl->otg.gadget);
517 } 517 }
518 sysfs_notify(&twl->dev->kobj, NULL, "vbus"); 518 sysfs_notify(&twl->dev->kobj, NULL, "vbus");
@@ -534,7 +534,7 @@ static void twl4030_usb_phy_init(struct twl4030_usb *twl)
534 twl->asleep = 0; 534 twl->asleep = 0;
535 } 535 }
536 536
537 blocking_notifier_call_chain(&twl->otg.notifier, status, 537 atomic_notifier_call_chain(&twl->otg.notifier, status,
538 twl->otg.gadget); 538 twl->otg.gadget);
539 } 539 }
540 sysfs_notify(&twl->dev->kobj, NULL, "vbus"); 540 sysfs_notify(&twl->dev->kobj, NULL, "vbus");
@@ -623,7 +623,7 @@ static int __devinit twl4030_usb_probe(struct platform_device *pdev)
623 if (device_create_file(&pdev->dev, &dev_attr_vbus)) 623 if (device_create_file(&pdev->dev, &dev_attr_vbus))
624 dev_warn(&pdev->dev, "could not create sysfs file\n"); 624 dev_warn(&pdev->dev, "could not create sysfs file\n");
625 625
626 BLOCKING_INIT_NOTIFIER_HEAD(&twl->otg.notifier); 626 ATOMIC_INIT_NOTIFIER_HEAD(&twl->otg.notifier);
627 627
628 /* Our job is to use irqs and status from the power module 628 /* Our job is to use irqs and status from the power module
629 * to keep the transceiver disabled when nothing's connected. 629 * to keep the transceiver disabled when nothing's connected.