summaryrefslogtreecommitdiffstats
path: root/include/asm-arm/rtc.h
diff options
context:
space:
mode:
authorRussell King2008-04-20 13:31:29 +0200
committerRussell King2008-05-22 15:56:41 +0200
commitbedd78ca786c1d18c2a2785c7e40593dc9c9870f (patch)
treef163fde266c2fd666615ad1b629698e391242ba4 /include/asm-arm/rtc.h
parent[RTC] rtc-sa1100: remove dependence on asm/rtc.h (diff)
downloadkernel-qcow2-linux-bedd78ca786c1d18c2a2785c7e40593dc9c9870f.tar.gz
kernel-qcow2-linux-bedd78ca786c1d18c2a2785c7e40593dc9c9870f.tar.xz
kernel-qcow2-linux-bedd78ca786c1d18c2a2785c7e40593dc9c9870f.zip
[RTC] remove old ARM rtc library code
Now that all drivers using it are gone, remove the old ARM RTC library. Acked-by: Alessandro Zummo <a.zummo@towertech.it> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/asm-arm/rtc.h')
-rw-r--r--include/asm-arm/rtc.h43
1 files changed, 0 insertions, 43 deletions
diff --git a/include/asm-arm/rtc.h b/include/asm-arm/rtc.h
deleted file mode 100644
index 1a5c9232a91e..000000000000
--- a/include/asm-arm/rtc.h
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * linux/include/asm-arm/rtc.h
- *
- * Copyright (C) 2003 Deep Blue Solutions Ltd.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- */
-#ifndef ASMARM_RTC_H
-#define ASMARM_RTC_H
-
-struct module;
-
-struct rtc_ops {
- struct module *owner;
- int (*open)(void);
- void (*release)(void);
- int (*ioctl)(unsigned int, unsigned long);
-
- int (*read_time)(struct rtc_time *);
- int (*set_time)(struct rtc_time *);
- int (*read_alarm)(struct rtc_wkalrm *);
- int (*set_alarm)(struct rtc_wkalrm *);
- int (*proc)(char *buf);
-};
-
-void rtc_next_alarm_time(struct rtc_time *, struct rtc_time *, struct rtc_time *);
-void rtc_update(unsigned long, unsigned long);
-int register_rtc(struct rtc_ops *);
-void unregister_rtc(struct rtc_ops *);
-
-static inline int rtc_periodic_alarm(struct rtc_time *tm)
-{
- return (tm->tm_year == -1) ||
- ((unsigned)tm->tm_mon >= 12) ||
- ((unsigned)(tm->tm_mday - 1) >= 31) ||
- ((unsigned)tm->tm_hour > 23) ||
- ((unsigned)tm->tm_min > 59) ||
- ((unsigned)tm->tm_sec > 59);
-}
-
-#endif