summaryrefslogtreecommitdiff
path: root/drivers/watchdog
diff options
context:
space:
mode:
authorAjay Nandakumar <anandakumarm@nvidia.com>2013-08-28 10:32:01 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 13:43:07 -0700
commite3b85bed42b4fa358d4f7be39efe09eff95431fa (patch)
treebe98829a1e56ad67426c59b0adf23cd80827fff7 /drivers/watchdog
parentf7dec0ac1cd2d30555dbd5b870026fd41b1fc93e (diff)
palmas: obtain IRQ from palmas_irq_get_virq
obtain interrupts through palmas_irq_get_virq instead of platform_get_irq for MFD palmas drivers. Change-Id: I66791b6adcb2c7f365d5b90d7b76c6d3ad66c8c6 Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com> Reviewed-on: http://git-master/r/267068 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r--drivers/watchdog/palmas_wdt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/watchdog/palmas_wdt.c b/drivers/watchdog/palmas_wdt.c
index 3d15bde9938b..e2954f441e0e 100644
--- a/drivers/watchdog/palmas_wdt.c
+++ b/drivers/watchdog/palmas_wdt.c
@@ -3,7 +3,7 @@
*
* Watchdog timer for Palmas PMIC.
*
- * Copyright (c) 2013, NVIDIA Corporation.
+ * Copyright (c) 2013, NVIDIA Corporation. All rights reserved.
*
* Author: Laxman Dewangan <ldewangan@nvidia.com>
*
@@ -147,8 +147,8 @@ static int palmas_wdt_probe(struct platform_device *pdev)
pdata = dev_get_platdata(pdev->dev.parent);
wdt->dev = &pdev->dev;
- wdt->irq = platform_get_irq(pdev, 0);
wdt->palmas = dev_get_drvdata(pdev->dev.parent);
+ wdt->irq = palmas_irq_get_virq(wdt->palmas, PALMAS_WDT_IRQ);
wdt_dev = &wdt->wdt_dev;
wdt_dev->info = &palmas_wdt_info;