diff options
| author | Patrice Chotard <[email protected]> | 2022-05-06 08:22:35 +0200 |
|---|---|---|
| committer | Marek Vasut <[email protected]> | 2022-05-06 10:38:39 +0200 |
| commit | 6aa8bde8786d7bd8077b1a4708fc4bffd4861baa (patch) | |
| tree | c70b47540ae0a3cefaeab5745aaa3f8f45697061 | |
| parent | ba96176ab70e299945049cc14e4323241d443e05 (diff) | |
usb: host: ehci-generic: Remove DM_REGULATOR flag
Since commit 16cc5ad0b439 ("power: regulator: add dummy helper")
regulator dummy helper are always available even if DM_REGULATOR
is not set.
DM_REGULATOR flag is no more needed to protect no DM core,
remove it.
Signed-off-by: Patrice Chotard <[email protected]>
| -rw-r--r-- | drivers/usb/host/ehci-generic.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/usb/host/ehci-generic.c b/drivers/usb/host/ehci-generic.c index 87601690351..4734af03962 100644 --- a/drivers/usb/host/ehci-generic.c +++ b/drivers/usb/host/ehci-generic.c @@ -26,12 +26,9 @@ struct generic_ehci { struct clk_bulk clocks; struct reset_ctl_bulk resets; struct phy phy; -#ifdef CONFIG_DM_REGULATOR struct udevice *vbus_supply; -#endif }; -#ifdef CONFIG_DM_REGULATOR static int ehci_enable_vbus_supply(struct udevice *dev) { struct generic_ehci *priv = dev_get_priv(dev); @@ -62,17 +59,6 @@ static int ehci_disable_vbus_supply(struct generic_ehci *priv) else return 0; } -#else -static int ehci_enable_vbus_supply(struct udevice *dev) -{ - return 0; -} - -static int ehci_disable_vbus_supply(struct generic_ehci *priv) -{ - return 0; -} -#endif static int ehci_usb_probe(struct udevice *dev) { |
