Loading drivers/rtc/nvmem.c +1 −2 Original line number Diff line number Diff line Loading @@ -14,8 +14,6 @@ #include <linux/rtc.h> #include <linux/sysfs.h> #include "rtc-core.h" /* * Deprecated ABI compatibility, this should be removed at some point */ Loading Loading @@ -105,6 +103,7 @@ int rtc_nvmem_register(struct rtc_device *rtc, return 0; } EXPORT_SYMBOL_GPL(rtc_nvmem_register); void rtc_nvmem_unregister(struct rtc_device *rtc) { Loading drivers/rtc/rtc-core.h +0 −13 Original line number Diff line number Diff line Loading @@ -46,16 +46,3 @@ static inline const struct attribute_group **rtc_get_dev_attribute_groups(void) return NULL; } #endif #ifdef CONFIG_RTC_NVMEM int rtc_nvmem_register(struct rtc_device *rtc, struct nvmem_config *nvmem_config); void rtc_nvmem_unregister(struct rtc_device *rtc); #else static inline int rtc_nvmem_register(struct rtc_device *rtc, struct nvmem_config *nvmem_config) { return -ENODEV; } static inline void rtc_nvmem_unregister(struct rtc_device *rtc) {} #endif include/linux/rtc.h +13 −0 Original line number Diff line number Diff line Loading @@ -271,4 +271,17 @@ extern int rtc_hctosys_ret; #define rtc_hctosys_ret -ENODEV #endif #ifdef CONFIG_RTC_NVMEM int rtc_nvmem_register(struct rtc_device *rtc, struct nvmem_config *nvmem_config); void rtc_nvmem_unregister(struct rtc_device *rtc); #else static inline int rtc_nvmem_register(struct rtc_device *rtc, struct nvmem_config *nvmem_config) { return -ENODEV; } static inline void rtc_nvmem_unregister(struct rtc_device *rtc) {} #endif #endif /* _LINUX_RTC_H_ */ Loading
drivers/rtc/nvmem.c +1 −2 Original line number Diff line number Diff line Loading @@ -14,8 +14,6 @@ #include <linux/rtc.h> #include <linux/sysfs.h> #include "rtc-core.h" /* * Deprecated ABI compatibility, this should be removed at some point */ Loading Loading @@ -105,6 +103,7 @@ int rtc_nvmem_register(struct rtc_device *rtc, return 0; } EXPORT_SYMBOL_GPL(rtc_nvmem_register); void rtc_nvmem_unregister(struct rtc_device *rtc) { Loading
drivers/rtc/rtc-core.h +0 −13 Original line number Diff line number Diff line Loading @@ -46,16 +46,3 @@ static inline const struct attribute_group **rtc_get_dev_attribute_groups(void) return NULL; } #endif #ifdef CONFIG_RTC_NVMEM int rtc_nvmem_register(struct rtc_device *rtc, struct nvmem_config *nvmem_config); void rtc_nvmem_unregister(struct rtc_device *rtc); #else static inline int rtc_nvmem_register(struct rtc_device *rtc, struct nvmem_config *nvmem_config) { return -ENODEV; } static inline void rtc_nvmem_unregister(struct rtc_device *rtc) {} #endif
include/linux/rtc.h +13 −0 Original line number Diff line number Diff line Loading @@ -271,4 +271,17 @@ extern int rtc_hctosys_ret; #define rtc_hctosys_ret -ENODEV #endif #ifdef CONFIG_RTC_NVMEM int rtc_nvmem_register(struct rtc_device *rtc, struct nvmem_config *nvmem_config); void rtc_nvmem_unregister(struct rtc_device *rtc); #else static inline int rtc_nvmem_register(struct rtc_device *rtc, struct nvmem_config *nvmem_config) { return -ENODEV; } static inline void rtc_nvmem_unregister(struct rtc_device *rtc) {} #endif #endif /* _LINUX_RTC_H_ */