diff options
author | Marek Vasut | 2023-02-28 02:55:18 +0100 |
---|---|---|
committer | Marek Vasut | 2023-04-08 03:53:23 +0200 |
commit | 7d39feb137d9a2a9ae66e19dfeec99f7b662e020 (patch) | |
tree | a2ee66c036a7f99db4e69cc55ce4d855a030d660 /drivers/misc | |
parent | 19d0c64f89ee5a0d5d3077e5d7ec7dafd74a0d45 (diff) |
misc: ub251xb: Fix use of CONFIG_IS_ENABLED on DM_REGULATOR
The DM_REGULATOR symbol has SPL counterpart in:
drivers/power/regulator/Kconfig:config SPL_DM_REGULATOR
Use CONFIG_IS_ENABLED() macro to match on the correct
variant depending on the build stage.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/usb251xb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/misc/usb251xb.c b/drivers/misc/usb251xb.c index a78ad1843ae..92e92ba5e62 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) { |