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.fer...@foss.st.com>
> Cc: Raphael Gallais-Pou <raphael.gallais-...@foss.st.com>
> Cc: Philippe Cornu <philippe.co...@foss.st.com>
> Signed-off-by: Anusha Srivatsa <asriv...@redhat.com>


Hi Anusha,


Thanks for your work !
Acked-by: Raphael Gallais-Pou <raphael.gallais-...@foss.st.com>


Regards,
Raphaƫl


Reply via email to