[PATCH 10/14] drm/stm: move to devm_platform_ioremap_resource() usage
Raphael Gallais-Pou
raphael.gallais-pou at foss.st.com
Wed Jan 29 00:47:10 PST 2025
On 1/28/25 23:29, 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: Yannick Fertre <yannick.fertre at foss.st.com>
> Cc: Raphael Gallais-Pou <raphael.gallais-pou at foss.st.com>
> Cc: Philippe Cornu <philippe.cornu at foss.st.com>
> Signed-off-by: Anusha Srivatsa <asrivats at redhat.com>
Hi Anusha,
Thanks for your work !
Acked-by: Raphael Gallais-Pou <raphael.gallais-pou at foss.st.com>
Regards,
Raphaël
More information about the Linux-rockchip
mailing list