diff options
Diffstat (limited to 'drivers/rtc/rtc-tegra.c')
-rw-r--r-- | drivers/rtc/rtc-tegra.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/drivers/rtc/rtc-tegra.c b/drivers/rtc/rtc-tegra.c index c006025cecc8..c84ea6659f49 100644 --- a/drivers/rtc/rtc-tegra.c +++ b/drivers/rtc/rtc-tegra.c | |||
@@ -303,7 +303,13 @@ static struct rtc_class_ops tegra_rtc_ops = { | |||
303 | .alarm_irq_enable = tegra_rtc_alarm_irq_enable, | 303 | .alarm_irq_enable = tegra_rtc_alarm_irq_enable, |
304 | }; | 304 | }; |
305 | 305 | ||
306 | static int __devinit tegra_rtc_probe(struct platform_device *pdev) | 306 | static const struct of_device_id tegra_rtc_dt_match[] = { |
307 | { .compatible = "nvidia,tegra20-rtc", }, | ||
308 | {} | ||
309 | }; | ||
310 | MODULE_DEVICE_TABLE(of, tegra_rtc_dt_match); | ||
311 | |||
312 | static int tegra_rtc_probe(struct platform_device *pdev) | ||
307 | { | 313 | { |
308 | struct tegra_rtc_info *info; | 314 | struct tegra_rtc_info *info; |
309 | struct resource *res; | 315 | struct resource *res; |
@@ -375,7 +381,7 @@ err_dev_unreg: | |||
375 | return ret; | 381 | return ret; |
376 | } | 382 | } |
377 | 383 | ||
378 | static int __devexit tegra_rtc_remove(struct platform_device *pdev) | 384 | static int tegra_rtc_remove(struct platform_device *pdev) |
379 | { | 385 | { |
380 | struct tegra_rtc_info *info = platform_get_drvdata(pdev); | 386 | struct tegra_rtc_info *info = platform_get_drvdata(pdev); |
381 | 387 | ||
@@ -435,11 +441,12 @@ static void tegra_rtc_shutdown(struct platform_device *pdev) | |||
435 | 441 | ||
436 | MODULE_ALIAS("platform:tegra_rtc"); | 442 | MODULE_ALIAS("platform:tegra_rtc"); |
437 | static struct platform_driver tegra_rtc_driver = { | 443 | static struct platform_driver tegra_rtc_driver = { |
438 | .remove = __devexit_p(tegra_rtc_remove), | 444 | .remove = tegra_rtc_remove, |
439 | .shutdown = tegra_rtc_shutdown, | 445 | .shutdown = tegra_rtc_shutdown, |
440 | .driver = { | 446 | .driver = { |
441 | .name = "tegra_rtc", | 447 | .name = "tegra_rtc", |
442 | .owner = THIS_MODULE, | 448 | .owner = THIS_MODULE, |
449 | .of_match_table = tegra_rtc_dt_match, | ||
443 | }, | 450 | }, |
444 | #ifdef CONFIG_PM | 451 | #ifdef CONFIG_PM |
445 | .suspend = tegra_rtc_suspend, | 452 | .suspend = tegra_rtc_suspend, |