[PATCH 01/14] drm/aspeed: move to devm_platform_ioremap_resource() usage
Andrew Jeffery
andrew at codeconstruct.com.au
Tue Jan 28 15:48:56 PST 2025
On Tue, 2025-01-28 at 17:29 -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: Joel Stanley <joel at jms.id.au>
> Signed-off-by: Anusha Srivatsa <asrivats at redhat.com>
Acked-by: Andrew Jeffery <andrew at codeconstruct.com.au>
More information about the Linux-rockchip
mailing list