Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Christophe JAILLET and committed by
Abel Vesa
3af29a89 ef23d44b

+3 -5
+3 -5
drivers/clk/imx/clk-imx8-acm.c
··· 310 310 * @dev: deivice pointer 311 311 * @dev_pm: multi power domain for device 312 312 */ 313 - static int clk_imx_acm_detach_pm_domains(struct device *dev, 314 - struct clk_imx_acm_pm_domains *dev_pm) 313 + static void clk_imx_acm_detach_pm_domains(struct device *dev, 314 + struct clk_imx_acm_pm_domains *dev_pm) 315 315 { 316 316 int i; 317 317 318 318 if (dev_pm->num_domains <= 1) 319 - return 0; 319 + return; 320 320 321 321 for (i = 0; i < dev_pm->num_domains; i++) { 322 322 device_link_del(dev_pm->pd_dev_link[i]); 323 323 dev_pm_domain_detach(dev_pm->pd_dev[i], false); 324 324 } 325 - 326 - return 0; 327 325 } 328 326 329 327 static int imx8_acm_clk_probe(struct platform_device *pdev)