[PATCH 01/14] drm/aspeed: move to devm_platform_ioremap_resource() usage
Maxime Ripard
mripard at kernel.org
Wed Jan 29 07:31:05 PST 2025
On Tue, Jan 28, 2025 at 05:29:25PM -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>
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-mediatek/attachments/20250129/5370783e/attachment-0001.sig>
More information about the Linux-mediatek
mailing list