[PATCH 6/8] hwmon: da9055: Remove use of platform_get_irq_byname()

From: Adam Thomson
Date: Wed Feb 05 2014 - 12:55:58 EST



Signed-off-by: Adam Thomson <Adam.Thomson.Opensource@xxxxxxxxxxx>
---
drivers/hwmon/da9055-hwmon.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/drivers/hwmon/da9055-hwmon.c b/drivers/hwmon/da9055-hwmon.c
index 029ecab..1867682 100644
--- a/drivers/hwmon/da9055-hwmon.c
+++ b/drivers/hwmon/da9055-hwmon.c
@@ -274,11 +274,8 @@ static int da9055_hwmon_probe(struct platform_device *pdev)

platform_set_drvdata(pdev, hwmon);

- hwmon_irq = platform_get_irq_byname(pdev, "HWMON");
- if (hwmon_irq < 0)
- return hwmon_irq;
-
- hwmon_irq = regmap_irq_get_virq(hwmon->da9055->irq_data, hwmon_irq);
+ hwmon_irq = regmap_irq_get_virq(hwmon->da9055->irq_data,
+ DA9055_IRQ_HWMON);
if (hwmon_irq < 0)
return hwmon_irq;

--
1.7.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/