diff options
Diffstat (limited to 'arch/powerpc/kernel/time.c')
-rw-r--r-- | arch/powerpc/kernel/time.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/time.c b/arch/powerpc/kernel/time.c index c9564031a2a9..926ea864e34f 100644 --- a/arch/powerpc/kernel/time.c +++ b/arch/powerpc/kernel/time.c | |||
@@ -1127,3 +1127,19 @@ void div128_by_32(u64 dividend_high, u64 dividend_low, | |||
1127 | dr->result_low = ((u64)y << 32) + z; | 1127 | dr->result_low = ((u64)y << 32) + z; |
1128 | 1128 | ||
1129 | } | 1129 | } |
1130 | |||
1131 | static int __init rtc_init(void) | ||
1132 | { | ||
1133 | struct platform_device *pdev; | ||
1134 | |||
1135 | if (!ppc_md.get_rtc_time) | ||
1136 | return -ENODEV; | ||
1137 | |||
1138 | pdev = platform_device_register_simple("rtc-generic", -1, NULL, 0); | ||
1139 | if (IS_ERR(pdev)) | ||
1140 | return PTR_ERR(pdev); | ||
1141 | |||
1142 | return 0; | ||
1143 | } | ||
1144 | |||
1145 | module_init(rtc_init); | ||