* [PATCH] mfd: exynos-lpass: use devm_platform_get_and_ioremap_resource()
@ 2022-11-11 8:40 ` ye.xingchen
0 siblings, 0 replies; 4+ messages in thread
From: ye.xingchen @ 2022-11-11 8:40 UTC (permalink / raw)
To: lee
Cc: krzysztof.kozlowski, linux-arm-kernel, linux-samsung-soc,
linux-kernel, chi.minghao
From: Minghao Chi <chi.minghao@zte.com.cn>
Convert platform_get_resource(), devm_ioremap_resource() to a single
call to devm_platform_get_and_ioremap_resource(), as this is exactly
what this function does.
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
---
drivers/mfd/exynos-lpass.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/mfd/exynos-lpass.c b/drivers/mfd/exynos-lpass.c
index 166cd21088cd..ac99e742a355 100644
--- a/drivers/mfd/exynos-lpass.c
+++ b/drivers/mfd/exynos-lpass.c
@@ -109,14 +109,12 @@ static int exynos_lpass_probe(struct platform_device *pdev)
struct device *dev = &pdev->dev;
struct exynos_lpass *lpass;
void __iomem *base_top;
- struct resource *res;
lpass = devm_kzalloc(dev, sizeof(*lpass), GFP_KERNEL);
if (!lpass)
return -ENOMEM;
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- base_top = devm_ioremap_resource(dev, res);
+ base_top = devm_platform_get_and_ioremap_resource(pdev, 0, NULL);
if (IS_ERR(base_top))
return PTR_ERR(base_top);
--
2.25.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] mfd: exynos-lpass: use devm_platform_get_and_ioremap_resource()
@ 2022-11-11 8:40 ` ye.xingchen
0 siblings, 0 replies; 4+ messages in thread
From: ye.xingchen @ 2022-11-11 8:40 UTC (permalink / raw)
To: lee
Cc: krzysztof.kozlowski, linux-arm-kernel, linux-samsung-soc,
linux-kernel, chi.minghao
From: Minghao Chi <chi.minghao@zte.com.cn>
Convert platform_get_resource(), devm_ioremap_resource() to a single
call to devm_platform_get_and_ioremap_resource(), as this is exactly
what this function does.
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
---
drivers/mfd/exynos-lpass.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/mfd/exynos-lpass.c b/drivers/mfd/exynos-lpass.c
index 166cd21088cd..ac99e742a355 100644
--- a/drivers/mfd/exynos-lpass.c
+++ b/drivers/mfd/exynos-lpass.c
@@ -109,14 +109,12 @@ static int exynos_lpass_probe(struct platform_device *pdev)
struct device *dev = &pdev->dev;
struct exynos_lpass *lpass;
void __iomem *base_top;
- struct resource *res;
lpass = devm_kzalloc(dev, sizeof(*lpass), GFP_KERNEL);
if (!lpass)
return -ENOMEM;
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- base_top = devm_ioremap_resource(dev, res);
+ base_top = devm_platform_get_and_ioremap_resource(pdev, 0, NULL);
if (IS_ERR(base_top))
return PTR_ERR(base_top);
--
2.25.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] mfd: exynos-lpass: use devm_platform_get_and_ioremap_resource()
2022-11-11 8:40 ` ye.xingchen
@ 2022-11-11 9:54 ` Krzysztof Kozlowski
-1 siblings, 0 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2022-11-11 9:54 UTC (permalink / raw)
To: ye.xingchen, lee
Cc: linux-arm-kernel, linux-samsung-soc, linux-kernel, chi.minghao
On 11/11/2022 09:40, ye.xingchen@zte.com.cn wrote:
> From: Minghao Chi <chi.minghao@zte.com.cn>
>
> Convert platform_get_resource(), devm_ioremap_resource() to a single
> call to devm_platform_get_and_ioremap_resource(), as this is exactly
> what this function does.
>
> Reported-by: Zeal Robot <zealci@zte.com.cn>
1. I cannot find this report. This is an open source work and public
collaboration. The "Reported-by" usually means that the issue was
reported to us, in some way, usually in public. Can we see the report?
Otherwise adding non-public, non-verifiable reports is useless and
clutters our report-credit-system.
2. Where is the bug? Reported-by means there was a bug being fixed.
Please describe the visible effects of bug and its impact.
Otherwise please stop adding bogus reported-by messages. I have seen to
many bogus reported-by tags from ZTE last months.
> Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
> ---
> drivers/mfd/exynos-lpass.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] mfd: exynos-lpass: use devm_platform_get_and_ioremap_resource()
@ 2022-11-11 9:54 ` Krzysztof Kozlowski
0 siblings, 0 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2022-11-11 9:54 UTC (permalink / raw)
To: ye.xingchen, lee
Cc: linux-arm-kernel, linux-samsung-soc, linux-kernel, chi.minghao
On 11/11/2022 09:40, ye.xingchen@zte.com.cn wrote:
> From: Minghao Chi <chi.minghao@zte.com.cn>
>
> Convert platform_get_resource(), devm_ioremap_resource() to a single
> call to devm_platform_get_and_ioremap_resource(), as this is exactly
> what this function does.
>
> Reported-by: Zeal Robot <zealci@zte.com.cn>
1. I cannot find this report. This is an open source work and public
collaboration. The "Reported-by" usually means that the issue was
reported to us, in some way, usually in public. Can we see the report?
Otherwise adding non-public, non-verifiable reports is useless and
clutters our report-credit-system.
2. Where is the bug? Reported-by means there was a bug being fixed.
Please describe the visible effects of bug and its impact.
Otherwise please stop adding bogus reported-by messages. I have seen to
many bogus reported-by tags from ZTE last months.
> Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
> ---
> drivers/mfd/exynos-lpass.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
Best regards,
Krzysztof
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-11-11 9:55 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-11 8:40 [PATCH] mfd: exynos-lpass: use devm_platform_get_and_ioremap_resource() ye.xingchen
2022-11-11 8:40 ` ye.xingchen
2022-11-11 9:54 ` Krzysztof Kozlowski
2022-11-11 9:54 ` Krzysztof Kozlowski
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.