diff options
| author | Markus Schneider-Pargmann (TI.com) <[email protected]> | 2025-11-28 11:21:21 +0100 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-12-12 15:16:21 -0600 |
| commit | 447bd8f1e5cf4d3c7d50df40d8cb46c7b911d7c5 (patch) | |
| tree | 597292dbdd7bd1fc79a3c322e523817e5cf71268 /drivers | |
| parent | aff0f4d30ec6d7968578fc05fc6df6b5700d9913 (diff) | |
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 <[email protected]>
Signed-off-by: Markus Schneider-Pargmann (TI.com) <[email protected]>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/core/simple-pm-bus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/core/simple-pm-bus.c b/drivers/core/simple-pm-bus.c index f38372ec60b..5df11728e82 100644 --- a/drivers/core/simple-pm-bus.c +++ b/drivers/core/simple-pm-bus.c @@ -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); |
