diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2023-09-14 23:31:06 +0300 |
---|---|---|
committer | Abel Vesa <abel.vesa@linaro.org> | 2023-10-04 11:13:59 +0300 |
commit | 3af29a89de2c6e49737a1201b7d6fd5ad3f635a4 (patch) | |
tree | f0e81fe4a294489ebbfd3e19df8c547bdaf8ba5e /drivers/clk/imx | |
parent | ef23d44b7fcbd19773dcedcb50ca2f625107604f (diff) | |
download | linux-3af29a89de2c6e49737a1201b7d6fd5ad3f635a4.tar.xz |
clk: imx: imx8: Simplify clk_imx_acm_detach_pm_domains()
The return value of clk_imx_acm_detach_pm_domains() is never used.
Simplify the code and turn it into a void function.
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
Diffstat (limited to 'drivers/clk/imx')
-rw-r--r-- | drivers/clk/imx/clk-imx8-acm.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/clk/imx/clk-imx8-acm.c b/drivers/clk/imx/clk-imx8-acm.c index c744fb78bb44..735b08296cc8 100644 --- a/drivers/clk/imx/clk-imx8-acm.c +++ b/drivers/clk/imx/clk-imx8-acm.c @@ -310,20 +310,18 @@ detach_pm: * @dev: deivice pointer * @dev_pm: multi power domain for device */ -static int clk_imx_acm_detach_pm_domains(struct device *dev, - struct clk_imx_acm_pm_domains *dev_pm) +static void clk_imx_acm_detach_pm_domains(struct device *dev, + struct clk_imx_acm_pm_domains *dev_pm) { int i; if (dev_pm->num_domains <= 1) - return 0; + return; for (i = 0; i < dev_pm->num_domains; i++) { device_link_del(dev_pm->pd_dev_link[i]); dev_pm_domain_detach(dev_pm->pd_dev[i], false); } - - return 0; } static int imx8_acm_clk_probe(struct platform_device *pdev) |