usb: host: ehci-generic: Remove DM_REGULATOR flag
Since commit 16cc5ad0b4
("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 <patrice.chotard@foss.st.com>
This commit is contained in:

committed by
Marek Vasut

parent
ba96176ab7
commit
6aa8bde878
@@ -26,12 +26,9 @@ struct generic_ehci {
|
|||||||
struct clk_bulk clocks;
|
struct clk_bulk clocks;
|
||||||
struct reset_ctl_bulk resets;
|
struct reset_ctl_bulk resets;
|
||||||
struct phy phy;
|
struct phy phy;
|
||||||
#ifdef CONFIG_DM_REGULATOR
|
|
||||||
struct udevice *vbus_supply;
|
struct udevice *vbus_supply;
|
||||||
#endif
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef CONFIG_DM_REGULATOR
|
|
||||||
static int ehci_enable_vbus_supply(struct udevice *dev)
|
static int ehci_enable_vbus_supply(struct udevice *dev)
|
||||||
{
|
{
|
||||||
struct generic_ehci *priv = dev_get_priv(dev);
|
struct generic_ehci *priv = dev_get_priv(dev);
|
||||||
@@ -62,17 +59,6 @@ static int ehci_disable_vbus_supply(struct generic_ehci *priv)
|
|||||||
else
|
else
|
||||||
return 0;
|
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)
|
static int ehci_usb_probe(struct udevice *dev)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user