mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-02 09:46:37 +03:00
simple-pm-bus: Make clocks optional
simple-pm-bus binding requires either power-domains or clocks, not both. Allow clk_get_bulk() to return -ENOENT. When no clocks are present, bulk->count is set to 0, which works correctly with clk_enable_bulk() and other clk functions used in this driver. Reviewed-by: Kory Maincent <kory.maincent@bootlin.com> Signed-off-by: Markus Schneider-Pargmann (TI.com) <msp@baylibre.com>
This commit is contained in:
committed by
Tom Rini
parent
aff0f4d30e
commit
447bd8f1e5
@@ -16,7 +16,7 @@ static int simple_pm_bus_probe(struct udevice *dev)
|
||||
struct clk_bulk *bulk = dev_get_priv(dev);
|
||||
|
||||
ret = clk_get_bulk(dev, bulk);
|
||||
if (ret)
|
||||
if (ret && ret != -ENOENT)
|
||||
return ret;
|
||||
|
||||
ret = clk_enable_bulk(bulk);
|
||||
|
||||
Reference in New Issue
Block a user