Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 209891
b: refs/heads/master
c: 461c317
h: refs/heads/master
i:
  209889: 317c266
  209887: 55a9af8
v: v3
  • Loading branch information
Felipe Balbi authored and Greg Kroah-Hartman committed Aug 24, 2010
1 parent 13abffe commit eff71d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: 7c81aafaf059b81ead2330bc13db78269ef62612
refs/heads/master: 461c317705eca5cac09a360f488715927fd0a927
6 changes: 5 additions & 1 deletion trunk/drivers/usb/otg/twl4030-usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,7 @@ static int __devinit twl4030_usb_probe(struct platform_device *pdev)
struct twl4030_usb_data *pdata = pdev->dev.platform_data;
struct twl4030_usb *twl;
int status, err;
u8 pwr;

if (!pdata) {
dev_dbg(&pdev->dev, "platform_data not available\n");
Expand All @@ -568,7 +569,10 @@ static int __devinit twl4030_usb_probe(struct platform_device *pdev)
twl->otg.set_peripheral = twl4030_set_peripheral;
twl->otg.set_suspend = twl4030_set_suspend;
twl->usb_mode = pdata->usb_mode;
twl->asleep = 1;

pwr = twl4030_usb_read(twl, PHY_PWR_CTRL);

twl->asleep = (pwr & PHY_PWR_PHYPWD);

/* init spinlock for workqueue */
spin_lock_init(&twl->lock);
Expand Down

0 comments on commit eff71d3

Please sign in to comment.