Message ID | 20220506082232.v2.2.Ic4641ddc829feecc12b775615bd175f3f35c3ea9@changeid |
---|---|
State | Accepted |
Commit | 6aa8bde8786d7bd8077b1a4708fc4bffd4861baa |
Delegated to: | Marek Vasut |
Headers | show |
Series | [v2,1/2] usb: host: ehci-generic: Make usage of clock/reset bulk() API | expand |
Hi, On 5/6/22 08:22, Patrice Chotard wrote: > 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 <patrice.chotard@foss.st.com> > --- > > Changes in v2: > - update commit message > > drivers/usb/host/ehci-generic.c | 14 -------------- > 1 file changed, 14 deletions(-) > Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Thanks Patrick
diff --git a/drivers/usb/host/ehci-generic.c b/drivers/usb/host/ehci-generic.c index 8760169035..4734af0396 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) {
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 <patrice.chotard@foss.st.com> --- Changes in v2: - update commit message drivers/usb/host/ehci-generic.c | 14 -------------- 1 file changed, 14 deletions(-)