diff options
| author | Anusha Srivatsa <asrivats@redhat.com> | 2025-03-04 16:05:34 -0500 |
|---|---|---|
| committer | Anusha Srivatsa <asrivats@asrivats-thinkpadt14sgen2i.rmtustx.csb> | 2025-03-10 16:25:01 -0400 |
| commit | 92b8f062a620b1231cc7aef06be871b88b771123 (patch) | |
| tree | eb5d6dee9e320c777bff3ca1d0ab8b28272fb9c1 /tools/perf/scripts/python | |
| parent | 3282422bf251db541fe07c548ca304130d37d754 (diff) | |
| download | kernel-92b8f062a620b1231cc7aef06be871b88b771123.tar.gz | |
drm/sprd: move to devm_platform_ioremap_resource() usage
Replace platform_get_resource + devm_ioremap
with just devm_platform_ioremap_resource()
Used Coccinelle to do this change. SmPl patch:
@rule_2@
identifier res;
expression ioremap;
identifier pdev;
@@
-struct resource *res;
...
-res = platform_get_resource(pdev,...);
<...
-if (!res) {
-...
-}
...>
-ioremap = devm_ioremap(...);
+ioremap = devm_platform_ioremap_resource(pdev,0);
v2: Address the return handling properly since
the new API returns error pointers and not NULL.
Cc: Chunyan Zhang <zhang.lyra@gmail.com>
Cc: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Anusha Srivatsa <asrivats@redhat.com>
Reviewed-by: Chunyan Zhang <zhang.lyra@gmail.com>(v1)
Reviewed-by: Maxime Ripard <mripard@kernel.org>(v1)
Link: https://patchwork.freedesktop.org/patch/640854/?series=144073&rev=5
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
