On Tue, Jan 28, 2025 at 05:29:27PM -0500, Anusha Srivatsa wrote:
> Replace platform_get_resource + devm_ioremap_resource
> with just devm_platform_ioremap_resource()
> 
> Used Coccinelle to do this change. SmPl patch:
> @rule_1@
> identifier res;
> expression ioremap_res;
> identifier pdev;
> @@
> -struct resource *res;
> ...
> -res = platform_get_resource(pdev,...);
> -ioremap_res = devm_ioremap_resource(...);
> +ioremap_res = devm_platform_ioremap_resource(pdev,0);
> 
> Cc: Xinliang Liu <xinliang....@linaro.org>
> Cc: Tian Tao <tiant...@hisilicon.com>
> Cc: Xinwei Kong <kong.kongxin...@hisilicon.com>
> Cc: Sumit Semwal <sumit.sem...@linaro.org>
> Cc: Yongqin Liu <yongqin....@linaro.org>
> Cc: John Stultz <jstu...@google.com>
> 
> Signed-off-by: Anusha Srivatsa <asriv...@redhat.com>

Reviewed-by: Maxime Ripard <mrip...@kernel.org>

Maxime

Attachment: signature.asc
Description: PGP signature

Reply via email to