Commit 0ac3e1cf authored by Mateusz Majewski's avatar Mateusz Majewski Committed by Daniel Lezcano

thermal/drivers/exynos: Drop id field

We do not use the value, and only Exynos 7 defines this alias anyway.
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: default avatarMateusz Majewski <m.majewski2@samsung.com>
Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20231201095625.301884-3-m.majewski2@samsung.com
parent 0cefaf6c
...@@ -138,7 +138,6 @@ enum soc_type { ...@@ -138,7 +138,6 @@ enum soc_type {
/** /**
* struct exynos_tmu_data : A structure to hold the private data of the TMU * struct exynos_tmu_data : A structure to hold the private data of the TMU
* driver * driver
* @id: identifier of the one instance of the TMU controller.
* @base: base address of the single instance of the TMU controller. * @base: base address of the single instance of the TMU controller.
* @base_second: base address of the common registers of the TMU controller. * @base_second: base address of the common registers of the TMU controller.
* @irq: irq number of the TMU controller. * @irq: irq number of the TMU controller.
...@@ -172,7 +171,6 @@ enum soc_type { ...@@ -172,7 +171,6 @@ enum soc_type {
* @tmu_clear_irqs: SoC specific TMU interrupts clearing method * @tmu_clear_irqs: SoC specific TMU interrupts clearing method
*/ */
struct exynos_tmu_data { struct exynos_tmu_data {
int id;
void __iomem *base; void __iomem *base;
void __iomem *base_second; void __iomem *base_second;
int irq; int irq;
...@@ -865,10 +863,6 @@ static int exynos_map_dt_data(struct platform_device *pdev) ...@@ -865,10 +863,6 @@ static int exynos_map_dt_data(struct platform_device *pdev)
if (!data || !pdev->dev.of_node) if (!data || !pdev->dev.of_node)
return -ENODEV; return -ENODEV;
data->id = of_alias_get_id(pdev->dev.of_node, "tmuctrl");
if (data->id < 0)
data->id = 0;
data->irq = irq_of_parse_and_map(pdev->dev.of_node, 0); data->irq = irq_of_parse_and_map(pdev->dev.of_node, 0);
if (data->irq <= 0) { if (data->irq <= 0) {
dev_err(&pdev->dev, "failed to get IRQ\n"); dev_err(&pdev->dev, "failed to get IRQ\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment