Home
last modified time | relevance | path

Searched refs:jz4740_ohci (Results 1 – 1 of 1) sorted by relevance

/linux-3.4.99/drivers/usb/host/
Dohci-jz4740.c32 static inline struct usb_hcd *jz4740_hcd_to_hcd(struct jz4740_ohci_hcd *jz4740_ohci) in jz4740_hcd_to_hcd() argument
34 return container_of((void *)jz4740_ohci, struct usb_hcd, hcd_priv); in jz4740_hcd_to_hcd()
58 static int ohci_jz4740_set_vbus_power(struct jz4740_ohci_hcd *jz4740_ohci, in ohci_jz4740_set_vbus_power() argument
63 if (!jz4740_ohci->vbus) in ohci_jz4740_set_vbus_power()
66 if (enabled && !jz4740_ohci->vbus_enabled) { in ohci_jz4740_set_vbus_power()
67 ret = regulator_enable(jz4740_ohci->vbus); in ohci_jz4740_set_vbus_power()
69 dev_err(jz4740_hcd_to_hcd(jz4740_ohci)->self.controller, in ohci_jz4740_set_vbus_power()
71 } else if (!enabled && jz4740_ohci->vbus_enabled) { in ohci_jz4740_set_vbus_power()
72 ret = regulator_disable(jz4740_ohci->vbus); in ohci_jz4740_set_vbus_power()
76 jz4740_ohci->vbus_enabled = enabled; in ohci_jz4740_set_vbus_power()
[all …]