time.c (dca3a783400a18e2bf4503b1d4a85c4d0ca1a7e4) | time.c (09652b00cd249a1f1a2cd1a70d31e880f24d06cc) |
---|---|
1/* 2 * Common time routines among all ppc machines. 3 * 4 * Written by Cort Dougan (cort@cs.nmt.edu) to merge 5 * Paul Mackerras' version and mine for PReP and Pmac. 6 * MPC8xx/MBX changes by Dan Malek (dmalek@jlc.net). 7 * Converted for 64-bit by Mike Corrigan (mikejc@us.ibm.com) 8 * --- 1035 unchanged lines hidden (view full) --- 1044static int __init rtc_init(void) 1045{ 1046 struct platform_device *pdev; 1047 1048 if (!ppc_md.get_rtc_time) 1049 return -ENODEV; 1050 1051 pdev = platform_device_register_simple("rtc-generic", -1, NULL, 0); | 1/* 2 * Common time routines among all ppc machines. 3 * 4 * Written by Cort Dougan (cort@cs.nmt.edu) to merge 5 * Paul Mackerras' version and mine for PReP and Pmac. 6 * MPC8xx/MBX changes by Dan Malek (dmalek@jlc.net). 7 * Converted for 64-bit by Mike Corrigan (mikejc@us.ibm.com) 8 * --- 1035 unchanged lines hidden (view full) --- 1044static int __init rtc_init(void) 1045{ 1046 struct platform_device *pdev; 1047 1048 if (!ppc_md.get_rtc_time) 1049 return -ENODEV; 1050 1051 pdev = platform_device_register_simple("rtc-generic", -1, NULL, 0); |
1052 if (IS_ERR(pdev)) 1053 return PTR_ERR(pdev); | |
1054 | 1052 |
1055 return 0; | 1053 return PTR_RET(pdev); |
1056} 1057 1058module_init(rtc_init); | 1054} 1055 1056module_init(rtc_init); |