* [PATCH] thermal/samsung: Use platform_get_irq() in exynos_tmu
@ 2026-06-03 0:56 Rosen Penev
0 siblings, 0 replies; only message in thread
From: Rosen Penev @ 2026-06-03 0:56 UTC (permalink / raw)
To: linux-pm
Cc: Bartlomiej Zolnierkiewicz, Krzysztof Kozlowski, Rafael J. Wysocki,
Daniel Lezcano, Zhang Rui, Lukasz Luba, Peter Griffin,
Alim Akhtar, open list:SAMSUNG THERMAL DRIVER,
moderated list:ARM/SAMSUNG S3C, S5P AND EXYNOS ARM ARCHITECTURES,
open list
Replace deprecated irq_of_parse_and_map() with platform_get_irq() for IRQ
retrieval in exynos_tmu, and change error handling to propagate the error
code directly. This improves maintainability and aligns with standard
driver practices. irq_of_parse_and_map() requires irq_dispose_mapping(),
which is missing.
Assisted-by: opencode:big-pickle
Signed-off-by: Rosen Penev <rosenp@gmail•com>
---
drivers/thermal/samsung/exynos_tmu.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c
index 47a99b3c5395..ff81b81b4532 100644
--- a/drivers/thermal/samsung/exynos_tmu.c
+++ b/drivers/thermal/samsung/exynos_tmu.c
@@ -846,10 +846,10 @@ static int exynos_map_dt_data(struct platform_device *pdev)
if (!data || !pdev->dev.of_node)
return -ENODEV;
- data->irq = irq_of_parse_and_map(pdev->dev.of_node, 0);
- if (data->irq <= 0) {
+ data->irq = platform_get_irq(pdev, 0);
+ if (data->irq < 0) {
dev_err(&pdev->dev, "failed to get IRQ\n");
- return -ENODEV;
+ return data->irq;
}
if (of_address_to_resource(pdev->dev.of_node, 0, &res)) {
--
2.54.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-03 0:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-03 0:56 [PATCH] thermal/samsung: Use platform_get_irq() in exynos_tmu Rosen Penev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox