time.c (bf61c8840efe60fd8f91446860b63338fb424158) time.c (8c6ffba0eddc8c110dbf444f51354ce42069abfc)
1/*
2 * linux/arch/m68k/kernel/time.c
3 *
4 * Copyright (C) 1991, 1992, 1995 Linus Torvalds
5 *
6 * This file contains the m68k-specific time handling details.
7 * Most of the stuff is located in the machine specific files.
8 *

--- 76 unchanged lines hidden (view full) ---

85static int __init rtc_init(void)
86{
87 struct platform_device *pdev;
88
89 if (!mach_hwclk)
90 return -ENODEV;
91
92 pdev = platform_device_register_simple("rtc-generic", -1, NULL, 0);
1/*
2 * linux/arch/m68k/kernel/time.c
3 *
4 * Copyright (C) 1991, 1992, 1995 Linus Torvalds
5 *
6 * This file contains the m68k-specific time handling details.
7 * Most of the stuff is located in the machine specific files.
8 *

--- 76 unchanged lines hidden (view full) ---

85static int __init rtc_init(void)
86{
87 struct platform_device *pdev;
88
89 if (!mach_hwclk)
90 return -ENODEV;
91
92 pdev = platform_device_register_simple("rtc-generic", -1, NULL, 0);
93 return PTR_RET(pdev);
93 return PTR_ERR_OR_ZERO(pdev);
94}
95
96module_init(rtc_init);
97
98#endif /* CONFIG_ARCH_USES_GETTIMEOFFSET */
99
100void __init time_init(void)
101{
102 mach_sched_init(timer_interrupt);
103}
94}
95
96module_init(rtc_init);
97
98#endif /* CONFIG_ARCH_USES_GETTIMEOFFSET */
99
100void __init time_init(void)
101{
102 mach_sched_init(timer_interrupt);
103}