usb: ehci: Fixup efika hack for devicetree
We used to distinguish which USB port to fixup by pdev->id. This is < 0 for devicetree probed devices all the time, so this won't work anymore once we switch to devicetree. Do the fixup on every port instead, it doesn't hurt. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
a4daf50305
commit
cd79b13b13
|
@ -443,9 +443,8 @@ void ehci_powerup_fixup(struct ehci_priv *ehci)
|
|||
{
|
||||
void *viewport = (void *)ehci->hcor + 0x30;
|
||||
|
||||
if (ehci->dev->id > 0)
|
||||
ulpi_write(ULPI_OTG_CHRG_VBUS, ULPI_OTGCTL + ULPI_REG_SET,
|
||||
viewport);
|
||||
ulpi_write(ULPI_OTG_CHRG_VBUS, ULPI_OTGCTL + ULPI_REG_SET,
|
||||
viewport);
|
||||
}
|
||||
#else
|
||||
static inline void ehci_powerup_fixup(struct ehci_priv *ehci)
|
||||
|
|
Loading…
Reference in New Issue