From: Patrice Chotard <patrice.chotard@foss.st.com>
To: <u-boot@lists.denx.de>
Cc: Patrice CHOTARD <patrice.chotard@foss.st.com>,
Patrick DELAUNAY <patrick.delaunay@foss.st.com>,
U-Boot STM32 <uboot-stm32@st-md-mailman.stormreply.com>,
Marek Vasut <marex@denx.de>
Subject: [PATCH v2 2/2] usb: host: ehci-generic: Remove DM_REGULATOR flag
Date: Fri, 6 May 2022 08:22:35 +0200 [thread overview]
Message-ID: <20220506082232.v2.2.Ic4641ddc829feecc12b775615bd175f3f35c3ea9@changeid> (raw)
In-Reply-To: <20220506082232.v2.1.Ia5711b14a17cf1d042bdab9d3f28437d5c53272c@changeid>
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(-)
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)
{
--
2.25.1
next prev parent reply other threads:[~2022-05-06 6:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-06 6:22 [PATCH v2 1/2] usb: host: ehci-generic: Make usage of clock/reset bulk() API Patrice Chotard
2022-05-06 6:22 ` Patrice Chotard [this message]
2022-05-06 8:45 ` [PATCH v2 2/2] usb: host: ehci-generic: Remove DM_REGULATOR flag Patrick DELAUNAY
2022-05-06 8:44 ` [PATCH v2 1/2] usb: host: ehci-generic: Make usage of clock/reset bulk() API Patrick DELAUNAY
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220506082232.v2.2.Ic4641ddc829feecc12b775615bd175f3f35c3ea9@changeid \
--to=patrice.chotard@foss.st.com \
--cc=marex@denx.de \
--cc=patrick.delaunay@foss.st.com \
--cc=u-boot@lists.denx.de \
--cc=uboot-stm32@st-md-mailman.stormreply.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.