diff options
author | Heikki Krogerus <heikki.krogerus@linux.intel.com> | 2012-02-13 06:24:17 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-02-27 08:41:22 -0500 |
commit | b1c711d629358576e8896a18e74cd5f4d811d7f7 (patch) | |
tree | 8b03060028db6f6aca50b20f3fdc96170002ead2 /drivers/power | |
parent | fcc8ebc99034bae4020a3cec030553d469e265db (diff) |
usb: otg: mv_otg: Start using struct usb_otg
Use struct usb_otg members with OTG specific functions instead
of usb_phy members.
[ balbi@ti.com : fixed a compile error on isp1704_charger.c ]
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Marek Vasut <marek.vasut@gmail.com>
Acked-by: Neil Zhang <zhangwm@marvell.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/isp1704_charger.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/power/isp1704_charger.c b/drivers/power/isp1704_charger.c index 58ad6e998ca0..1289a5f790a1 100644 --- a/drivers/power/isp1704_charger.c +++ b/drivers/power/isp1704_charger.c | |||
@@ -274,8 +274,8 @@ static void isp1704_charger_work(struct work_struct *data) | |||
274 | case POWER_SUPPLY_TYPE_USB: | 274 | case POWER_SUPPLY_TYPE_USB: |
275 | default: | 275 | default: |
276 | /* enable data pullups */ | 276 | /* enable data pullups */ |
277 | if (isp->phy->gadget) | 277 | if (isp->phy->otg->gadget) |
278 | usb_gadget_connect(isp->phy->gadget); | 278 | usb_gadget_connect(isp->phy->otg->gadget); |
279 | } | 279 | } |
280 | break; | 280 | break; |
281 | case USB_EVENT_NONE: | 281 | case USB_EVENT_NONE: |
@@ -293,8 +293,8 @@ static void isp1704_charger_work(struct work_struct *data) | |||
293 | * chargers. The pullups may be enabled elsewhere, so this can | 293 | * chargers. The pullups may be enabled elsewhere, so this can |
294 | * not be the final solution. | 294 | * not be the final solution. |
295 | */ | 295 | */ |
296 | if (isp->phy->gadget) | 296 | if (isp->phy->otg->gadget) |
297 | usb_gadget_disconnect(isp->phy->gadget); | 297 | usb_gadget_disconnect(isp->phy->otg->gadget); |
298 | 298 | ||
299 | isp1704_charger_set_power(isp, 0); | 299 | isp1704_charger_set_power(isp, 0); |
300 | break; | 300 | break; |
@@ -459,8 +459,8 @@ static int __devinit isp1704_charger_probe(struct platform_device *pdev) | |||
459 | * enumerated. The charger driver should be always loaded before any | 459 | * enumerated. The charger driver should be always loaded before any |
460 | * gadget is loaded. | 460 | * gadget is loaded. |
461 | */ | 461 | */ |
462 | if (isp->phy->gadget) | 462 | if (isp->phy->otg->gadget) |
463 | usb_gadget_disconnect(isp->phy->gadget); | 463 | usb_gadget_disconnect(isp->phy->otg->gadget); |
464 | 464 | ||
465 | /* Detect charger if VBUS is valid (the cable was already plugged). */ | 465 | /* Detect charger if VBUS is valid (the cable was already plugged). */ |
466 | ret = isp1704_read(isp, ULPI_USB_INT_STS); | 466 | ret = isp1704_read(isp, ULPI_USB_INT_STS); |