[PATCH] pinctrl: actions: use devm_clk_get_enabled()

Krzysztof Kozlowski krzk at kernel.org
Tue Jun 24 01:15:22 PDT 2025


On 24/06/2025 08:22, Qi Han wrote:
> Use devm_clk_get_enabled() to simplify the code.
> 
> Change-Id: I0902c50e50db565381c65e8d8a7f1481e82b271a

Please run scripts/checkpatch.pl on the patches and fix reported
warnings. After that, run also 'scripts/checkpatch.pl --strict' on the
patches and (probably) fix more warnings. Some warnings can be ignored,
especially from --strict run, but the code here looks like it needs a
fix. Feel free to get in touch if the warning is not clear.

> Signed-off-by: Qi Han <hanqi at vivo.com>
> ---
>  drivers/pinctrl/actions/pinctrl-owl.c | 11 ++---------
>  1 file changed, 2 insertions(+), 9 deletions(-)
> 
> diff --git a/drivers/pinctrl/actions/pinctrl-owl.c b/drivers/pinctrl/actions/pinctrl-owl.c
> index 86f3d5c69e36..a66739a27489 100644
> --- a/drivers/pinctrl/actions/pinctrl-owl.c
> +++ b/drivers/pinctrl/actions/pinctrl-owl.c
> @@ -941,18 +941,13 @@ int owl_pinctrl_probe(struct platform_device *pdev,
>  		return PTR_ERR(pctrl->base);
>  
>  	/* enable GPIO/MFP clock */
> -	pctrl->clk = devm_clk_get(&pdev->dev, NULL);
> +	pctrl->clk = devm_clk_get_enabled(&pdev->dev, NULL);
> +

Why are you introducing whitespace changes?

Are you sure that you are not introducing same bugs as other vivo
patches? Do you understand the issue with this scripting work?

Best regards,
Krzysztof



More information about the linux-arm-kernel mailing list