diff options
| author | Olof Johansson <olof@lixom.net> | 2013-01-14 13:20:02 -0500 |
|---|---|---|
| committer | Olof Johansson <olof@lixom.net> | 2013-01-14 13:20:02 -0500 |
| commit | 8d84981e395850aab31c3f2ca7e2738e03f671d7 (patch) | |
| tree | 933425fddb23d28be802277471df3fe3f6c2711d /drivers/rtc/rtc-tegra.c | |
| parent | 00c82d64405631967dca3890a9ce80ab35d04cc7 (diff) | |
| parent | 77cc982f6a3b33a5aa058ad3b20cda8866db2948 (diff) | |
Merge branch 'clocksource/cleanup' into next/cleanup
Clockevent cleanup series from Shawn Guo.
Resolved move/change conflict in mach-pxa/time.c due to the sys_timer
cleanup.
* clocksource/cleanup:
clocksource: use clockevents_config_and_register() where possible
ARM: use clockevents_config_and_register() where possible
clockevents: export clockevents_config_and_register for module use
+ sync to Linux 3.8-rc3
Signed-off-by: Olof Johansson <olof@lixom.net>
Conflicts:
arch/arm/mach-pxa/time.c
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, |
