aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);