Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 303933
b: refs/heads/master
c: 934ccec
h: refs/heads/master
i:
  303931: ce95532
v: v3
  • Loading branch information
Shinya Kuribayashi authored and Greg Kroah-Hartman committed May 14, 2012
1 parent ae39b02 commit 49d0841
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0d13eebcab76ff8f2b5e479747f66ffbf6c78b57
refs/heads/master: 934ccec4da14dc0586dfe08b36166364bdd2181b
8 changes: 4 additions & 4 deletions trunk/drivers/usb/otg/gpio_vbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ struct gpio_vbus_data {
struct regulator *vbus_draw;
int vbus_draw_enabled;
unsigned mA;
struct work_struct work;
struct delayed_work work;
};


Expand Down Expand Up @@ -94,7 +94,7 @@ static int is_vbus_powered(struct gpio_vbus_mach_info *pdata)
static void gpio_vbus_work(struct work_struct *work)
{
struct gpio_vbus_data *gpio_vbus =
container_of(work, struct gpio_vbus_data, work);
container_of(work, struct gpio_vbus_data, work.work);
struct gpio_vbus_mach_info *pdata = gpio_vbus->dev->platform_data;
int gpio, status;

Expand Down Expand Up @@ -152,7 +152,7 @@ static irqreturn_t gpio_vbus_irq(int irq, void *data)
otg->gadget ? otg->gadget->name : "none");

if (otg->gadget)
schedule_work(&gpio_vbus->work);
schedule_delayed_work(&gpio_vbus->work, msecs_to_jiffies(100));

return IRQ_HANDLED;
}
Expand Down Expand Up @@ -300,7 +300,7 @@ static int __init gpio_vbus_probe(struct platform_device *pdev)

ATOMIC_INIT_NOTIFIER_HEAD(&gpio_vbus->phy.notifier);

INIT_WORK(&gpio_vbus->work, gpio_vbus_work);
INIT_DELAYED_WORK(&gpio_vbus->work, gpio_vbus_work);

gpio_vbus->vbus_draw = regulator_get(&pdev->dev, "vbus_draw");
if (IS_ERR(gpio_vbus->vbus_draw)) {
Expand Down

0 comments on commit 49d0841

Please sign in to comment.