Skip to content

Commit 0ac3e1c

Browse files
metiulekmdlezcano
authored andcommitted
thermal/drivers/exynos: Drop id field
We do not use the value, and only Exynos 7 defines this alias anyway. Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Mateusz Majewski <m.majewski2@samsung.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/20231201095625.301884-3-m.majewski2@samsung.com
1 parent 0cefaf6 commit 0ac3e1c

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

drivers/thermal/samsung/exynos_tmu.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ enum soc_type {
138138
/**
139139
* struct exynos_tmu_data : A structure to hold the private data of the TMU
140140
* driver
141-
* @id: identifier of the one instance of the TMU controller.
142141
* @base: base address of the single instance of the TMU controller.
143142
* @base_second: base address of the common registers of the TMU controller.
144143
* @irq: irq number of the TMU controller.
@@ -172,7 +171,6 @@ enum soc_type {
172171
* @tmu_clear_irqs: SoC specific TMU interrupts clearing method
173172
*/
174173
struct exynos_tmu_data {
175-
int id;
176174
void __iomem *base;
177175
void __iomem *base_second;
178176
int irq;
@@ -865,10 +863,6 @@ static int exynos_map_dt_data(struct platform_device *pdev)
865863
if (!data || !pdev->dev.of_node)
866864
return -ENODEV;
867865

868-
data->id = of_alias_get_id(pdev->dev.of_node, "tmuctrl");
869-
if (data->id < 0)
870-
data->id = 0;
871-
872866
data->irq = irq_of_parse_and_map(pdev->dev.of_node, 0);
873867
if (data->irq <= 0) {
874868
dev_err(&pdev->dev, "failed to get IRQ\n");

0 commit comments

Comments
 (0)