aboutsummaryrefslogtreecommitdiff
path: root/drivers/misc/usb251xb.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2023-04-08 14:19:08 -0400
committerTom Rini <trini@konsulko.com>2023-04-08 14:19:08 -0400
commitfa6f458c679f55edd11e8e34f209d4a0e01bf7bc (patch)
tree6c6862df3c961794ed864319b85dc493acc0f3ee /drivers/misc/usb251xb.c
parent187c7aba221f633dffa2f33bd582147059ed24f3 (diff)
parente3fed5ce790730dd3e05c810de8ee483af3fe42a (diff)
Merge branch 'master_regulator/fixes' of https://source.denx.de/u-boot/custodians/u-boot-sh
- Fix usage of CONFIG_IS_ENABLED and DM_REGULATOR
Diffstat (limited to 'drivers/misc/usb251xb.c')
-rw-r--r--drivers/misc/usb251xb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/misc/usb251xb.c b/drivers/misc/usb251xb.c
index a78ad1843a..92e92ba5e6 100644
--- a/drivers/misc/usb251xb.c
+++ b/drivers/misc/usb251xb.c
@@ -334,7 +334,7 @@ static int usb251xb_probe(struct udevice *dev)
struct usb251xb *hub = dev_get_priv(dev);
int err;
- if (IS_ENABLED(CONFIG_DM_REGULATOR) && hub->vdd) {
+ if (CONFIG_IS_ENABLED(DM_REGULATOR) && hub->vdd) {
err = regulator_set_enable(hub->vdd, true);
if (err)
return err;
@@ -391,7 +391,7 @@ static int usb251xb_of_to_plat(struct udevice *dev)
return err;
}
- if (IS_ENABLED(CONFIG_DM_REGULATOR)) {
+ if (CONFIG_IS_ENABLED(DM_REGULATOR)) {
err = device_get_supply_regulator(dev, "vdd-supply",
&hub->vdd);
if (err && err != -ENOENT) {