lkml.org 
[lkml]   [2014]   [Feb]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Date
Subject[PATCH 6/8] hwmon: da9055: Remove use of platform_get_irq_byname()

Signed-off-by: Adam Thomson <Adam.Thomson.Opensource@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


\
 
 \ /
  Last update: 2014-02-05 19:41    [W:0.184 / U:0.756 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site