diff options
author | Linus Torvalds <torvalds@woody.osdl.org> | 2006-11-21 21:42:44 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-11-21 21:42:44 -0500 |
commit | 0f9005a6f7a82f4aacbd72f7b92322a8ca1c3f97 (patch) | |
tree | 8b63f4a8add7f1bfbba02f9ddbbe26e7943afb21 /arch/powerpc/kernel/time.c | |
parent | c5dd27337a70b34cc400120e70a80fcb84c4fd7a (diff) | |
parent | 8746ed3dae14e87e9f7ad8e44649b72e22b33274 (diff) |
Merge branch 'merge' of master.kernel.org:/pub/scm/linux/kernel/git/paulus/powerpc
* 'merge' of master.kernel.org:/pub/scm/linux/kernel/git/paulus/powerpc:
[POWERPC] Fix ucc_geth of_device discovery on mpc832x
[POWERPC] Revert "[POWERPC] Add powerpc get/set_rtc_time interface to new generic rtc class"
[POWERPC] Revert "[POWERPC] Enable generic rtc hook for the MPC8349 mITX"
Diffstat (limited to 'arch/powerpc/kernel/time.c')
-rw-r--r-- | arch/powerpc/kernel/time.c | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/arch/powerpc/kernel/time.c b/arch/powerpc/kernel/time.c index a1b5e4b16151..46a24de36fec 100644 --- a/arch/powerpc/kernel/time.c +++ b/arch/powerpc/kernel/time.c | |||
@@ -1014,48 +1014,6 @@ void __init time_init(void) | |||
1014 | set_dec(tb_ticks_per_jiffy); | 1014 | set_dec(tb_ticks_per_jiffy); |
1015 | } | 1015 | } |
1016 | 1016 | ||
1017 | #ifdef CONFIG_RTC_CLASS | ||
1018 | static int set_rtc_class_time(struct rtc_time *tm) | ||
1019 | { | ||
1020 | int err; | ||
1021 | struct class_device *class_dev = | ||
1022 | rtc_class_open(CONFIG_RTC_HCTOSYS_DEVICE); | ||
1023 | |||
1024 | if (class_dev == NULL) | ||
1025 | return -ENODEV; | ||
1026 | |||
1027 | err = rtc_set_time(class_dev, tm); | ||
1028 | |||
1029 | rtc_class_close(class_dev); | ||
1030 | |||
1031 | return 0; | ||
1032 | } | ||
1033 | |||
1034 | static void get_rtc_class_time(struct rtc_time *tm) | ||
1035 | { | ||
1036 | int err; | ||
1037 | struct class_device *class_dev = | ||
1038 | rtc_class_open(CONFIG_RTC_HCTOSYS_DEVICE); | ||
1039 | |||
1040 | if (class_dev == NULL) | ||
1041 | return; | ||
1042 | |||
1043 | err = rtc_read_time(class_dev, tm); | ||
1044 | |||
1045 | rtc_class_close(class_dev); | ||
1046 | |||
1047 | return; | ||
1048 | } | ||
1049 | |||
1050 | int __init rtc_class_hookup(void) | ||
1051 | { | ||
1052 | ppc_md.get_rtc_time = get_rtc_class_time; | ||
1053 | ppc_md.set_rtc_time = set_rtc_class_time; | ||
1054 | |||
1055 | return 0; | ||
1056 | } | ||
1057 | #endif /* CONFIG_RTC_CLASS */ | ||
1058 | |||
1059 | 1017 | ||
1060 | #define FEBRUARY 2 | 1018 | #define FEBRUARY 2 |
1061 | #define STARTOFTIME 1970 | 1019 | #define STARTOFTIME 1970 |