Signed-off-by: Adam Thomson <adam.thomson.opensou...@diasemi.com>
---
 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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to