aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-tps65910.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/rtc/rtc-tps65910.c')
-rw-r--r--drivers/rtc/rtc-tps65910.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-tps65910.c b/drivers/rtc/rtc-tps65910.c
index 7af00208d637..2583349fbde5 100644
--- a/drivers/rtc/rtc-tps65910.c
+++ b/drivers/rtc/rtc-tps65910.c
@@ -258,6 +258,8 @@ static int tps65910_rtc_probe(struct platform_device *pdev)
258 if (ret < 0) 258 if (ret < 0)
259 return ret; 259 return ret;
260 260
261 platform_set_drvdata(pdev, tps_rtc);
262
261 irq = platform_get_irq(pdev, 0); 263 irq = platform_get_irq(pdev, 0);
262 if (irq <= 0) { 264 if (irq <= 0) {
263 dev_warn(&pdev->dev, "Wake up is not possible as irq = %d\n", 265 dev_warn(&pdev->dev, "Wake up is not possible as irq = %d\n",
@@ -283,8 +285,6 @@ static int tps65910_rtc_probe(struct platform_device *pdev)
283 return ret; 285 return ret;
284 } 286 }
285 287
286 platform_set_drvdata(pdev, tps_rtc);
287
288 return 0; 288 return 0;
289} 289}
290 290