Skip to content

Commit 3af29a8

Browse files
tititiou36abelvesa
authored andcommitted
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 <[email protected]> Signed-off-by: Christophe JAILLET <[email protected]> Signed-off-by: Abel Vesa <[email protected]>
1 parent ef23d44 commit 3af29a8

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

drivers/clk/imx/clk-imx8-acm.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -310,20 +310,18 @@ static int clk_imx_acm_attach_pm_domains(struct device *dev,
310310
* @dev: deivice pointer
311311
* @dev_pm: multi power domain for device
312312
*/
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)
315315
{
316316
int i;
317317

318318
if (dev_pm->num_domains <= 1)
319-
return 0;
319+
return;
320320

321321
for (i = 0; i < dev_pm->num_domains; i++) {
322322
device_link_del(dev_pm->pd_dev_link[i]);
323323
dev_pm_domain_detach(dev_pm->pd_dev[i], false);
324324
}
325-
326-
return 0;
327325
}
328326

329327
static int imx8_acm_clk_probe(struct platform_device *pdev)

0 commit comments

Comments
 (0)