aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc
diff options
context:
space:
mode:
authorVenu Byravarasu <vbyravarasu@nvidia.com>2012-10-04 20:14:34 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-10-05 14:05:07 -0400
commit06f77d18e4be0837868ebba8dff4097103e484c4 (patch)
tree6627df1d80745c03cf3219b7221ee57e8511a896 /drivers/rtc
parent651fb48034ee2cf36d4c8d1cc86ba923a3c82b0d (diff)
drivers/rtc/rtc-tps65910.c: use platform_get_irq() to get RTC irq details
As RTC driver needs only irq number from platform data, using platform_get_irq(), instead of generic dev_get_platdata(). Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com> Acked-by: Stephen Warren <swarren@wwwdotorg.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/rtc-tps65910.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/rtc/rtc-tps65910.c b/drivers/rtc/rtc-tps65910.c
index 7c4ca8605741..7a82337e4dee 100644
--- a/drivers/rtc/rtc-tps65910.c
+++ b/drivers/rtc/rtc-tps65910.c
@@ -226,7 +226,6 @@ static int __devinit tps65910_rtc_probe(struct platform_device *pdev)
226{ 226{
227 struct tps65910 *tps65910 = NULL; 227 struct tps65910 *tps65910 = NULL;
228 struct tps65910_rtc *tps_rtc = NULL; 228 struct tps65910_rtc *tps_rtc = NULL;
229 struct tps65910_board *pmic_plat_data;
230 int ret; 229 int ret;
231 int irq; 230 int irq;
232 u32 rtc_reg; 231 u32 rtc_reg;
@@ -253,15 +252,13 @@ static int __devinit tps65910_rtc_probe(struct platform_device *pdev)
253 if (ret < 0) 252 if (ret < 0)
254 return ret; 253 return ret;
255 254
256 pmic_plat_data = dev_get_platdata(tps65910->dev); 255 irq = platform_get_irq(pdev, 0);
257 irq = pmic_plat_data->irq_base;
258 if (irq <= 0) { 256 if (irq <= 0) {
259 dev_warn(&pdev->dev, "Wake up is not possible as irq = %d\n", 257 dev_warn(&pdev->dev, "Wake up is not possible as irq = %d\n",
260 irq); 258 irq);
261 return ret; 259 return ret;
262 } 260 }
263 261
264 irq += TPS65910_IRQ_RTC_ALARM;
265 ret = devm_request_threaded_irq(&pdev->dev, irq, NULL, 262 ret = devm_request_threaded_irq(&pdev->dev, irq, NULL,
266 tps65910_rtc_interrupt, IRQF_TRIGGER_LOW, 263 tps65910_rtc_interrupt, IRQF_TRIGGER_LOW,
267 "rtc-tps65910", &pdev->dev); 264 "rtc-tps65910", &pdev->dev);