Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 364739
b: refs/heads/master
c: 817e5f3
h: refs/heads/master
i:
  364737: 071260e
  364735: 8697e02
v: v3
  • Loading branch information
Kishon Vijay Abraham I authored and Felipe Balbi committed Mar 18, 2013
1 parent 645e4c2 commit d4b438c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 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: 9166902c435b4847c1987188294407b24e76d9e6
refs/heads/master: 817e5f33d0c12f24bdfebe88c96ca2e968756da4
10 changes: 4 additions & 6 deletions trunk/drivers/usb/phy/phy-twl4030-usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -510,8 +510,9 @@ static irqreturn_t twl4030_usb_irq(int irq, void *_twl)
return IRQ_HANDLED;
}

static void twl4030_usb_phy_init(struct twl4030_usb *twl)
static int twl4030_usb_phy_init(struct usb_phy *phy)
{
struct twl4030_usb *twl = phy_to_twl(phy);
enum omap_musb_vbus_id_status status;

status = twl4030_usb_linkstat(twl);
Expand All @@ -528,6 +529,7 @@ static void twl4030_usb_phy_init(struct twl4030_usb *twl)
omap_musb_mailbox(twl->linkstat);
}
sysfs_notify(&twl->dev->kobj, NULL, "vbus");
return 0;
}

static int twl4030_set_suspend(struct usb_phy *x, int suspend)
Expand Down Expand Up @@ -604,6 +606,7 @@ static int twl4030_usb_probe(struct platform_device *pdev)
twl->phy.otg = otg;
twl->phy.type = USB_PHY_TYPE_USB2;
twl->phy.set_suspend = twl4030_set_suspend;
twl->phy.init = twl4030_usb_phy_init;

otg->phy = &twl->phy;
otg->set_host = twl4030_set_host;
Expand Down Expand Up @@ -641,11 +644,6 @@ static int twl4030_usb_probe(struct platform_device *pdev)
return status;
}

/* Power down phy or make it work according to
* current link state.
*/
twl4030_usb_phy_init(twl);

dev_info(&pdev->dev, "Initialized TWL4030 USB module\n");
return 0;
}
Expand Down

0 comments on commit d4b438c

Please sign in to comment.