[PATCH] PM / devfreq: sun8i-a33-mbus: Fix misconversion to devm_clk_rate_exclusive_get()
Uwe Kleine-König
u.kleine-koenig at baylibre.com
Mon May 12 01:29:37 PDT 2025
The patch converting the driver to make more use of devm functions got
one conversion wrong making the driver not compilable any more. I have
no excuse, mea culpa!
Fix this by adding the needed device parameter.
Reported-by: kernel test robot <lkp at intel.com>
Link: https://lore.kernel.org/all/202412070231.MzXdNrLv-lkp@intel.com
Fixes: bc253b28a365 ("PM / devfreq: sun8i-a33-mbus: Simplify by using more devm functions")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig at baylibre.com>
---
drivers/devfreq/sun8i-a33-mbus.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/devfreq/sun8i-a33-mbus.c b/drivers/devfreq/sun8i-a33-mbus.c
index f99af530211d..4bd5657558d6 100644
--- a/drivers/devfreq/sun8i-a33-mbus.c
+++ b/drivers/devfreq/sun8i-a33-mbus.c
@@ -381,7 +381,7 @@ static int sun8i_a33_mbus_probe(struct platform_device *pdev)
return dev_err_probe(dev, ret, "failed to lock dram clock rate\n");
/* Lock the MBUS clock rate to keep MBUS_TMR_PERIOD in sync. */
- ret = devm_clk_rate_exclusive_get(priv->clk_mbus);
+ ret = devm_clk_rate_exclusive_get(dev, priv->clk_mbus);
if (ret)
return dev_err_probe(dev, ret, "failed to lock mbus clock rate\n");
--
2.47.2
More information about the linux-arm-kernel
mailing list