video: stm32: remove test on CONFIG_DM_REGULATOR

The tests on CONFIG_DM_REGULATOR, added to avoid compilation issues, can
now be removed, they are no more needed since the commit 16cc5ad0b439
("power: regulator: add dummy helper").

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
This commit is contained in:
Patrick Delaunay 2022-06-20 11:55:07 +02:00 committed by Anatolij Gustschin
parent 5f71b2f105
commit 5bc6f8c2a9

View File

@ -433,7 +433,6 @@ static int stm32_dsi_probe(struct udevice *dev)
return -EINVAL; return -EINVAL;
} }
if (IS_ENABLED(CONFIG_DM_REGULATOR)) {
ret = device_get_supply_regulator(dev, "phy-dsi-supply", ret = device_get_supply_regulator(dev, "phy-dsi-supply",
&priv->vdd_reg); &priv->vdd_reg);
if (ret && ret != -ENOENT) { if (ret && ret != -ENOENT) {
@ -446,7 +445,6 @@ static int stm32_dsi_probe(struct udevice *dev)
if (ret) if (ret)
return ret; return ret;
} }
}
ret = clk_get_by_name(device->dev, "pclk", &clk); ret = clk_get_by_name(device->dev, "pclk", &clk);
if (ret) { if (ret) {
@ -493,7 +491,6 @@ static int stm32_dsi_probe(struct udevice *dev)
err_clk: err_clk:
clk_disable(&clk); clk_disable(&clk);
err_reg: err_reg:
if (IS_ENABLED(CONFIG_DM_REGULATOR))
regulator_set_enable(priv->vdd_reg, false); regulator_set_enable(priv->vdd_reg, false);
return ret; return ret;