[PATCH 03/14] drm/hisilicon: move to devm_platform_ioremap_resource() usage

Maxime Ripard mripard at kernel.org
Wed Jan 29 07:33:22 PST 2025


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.liu at linaro.org>
> Cc: Tian Tao <tiantao6 at hisilicon.com>
> Cc: Xinwei Kong <kong.kongxinwei at hisilicon.com>
> Cc: Sumit Semwal <sumit.semwal at linaro.org>
> Cc: Yongqin Liu <yongqin.liu at linaro.org>
> Cc: John Stultz <jstultz at google.com>
> 
> Signed-off-by: Anusha Srivatsa <asrivats at redhat.com>

Reviewed-by: Maxime Ripard <mripard at kernel.org>

Maxime
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 273 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-rockchip/attachments/20250129/c85785ab/attachment.sig>


More information about the Linux-rockchip mailing list