20 #include <linux/module.h>
21 #include <linux/kernel.h>
22 #include <linux/rtc.h>
29 #define CNTR_OK (SYS_CNTRL_E0 | SYS_CNTRL_32S)
61 .read_time = au1xtoy_rtc_read_time,
62 .set_time = au1xtoy_rtc_set_time,
73 dev_err(&pdev->
dev,
"counters not working; aborting.\n");
91 dev_err(&pdev->
dev,
"timeout waiting for access\n");
106 if (IS_ERR(rtcdev)) {
107 ret = PTR_ERR(rtcdev);
111 platform_set_drvdata(pdev, rtcdev);
121 struct rtc_device *rtcdev = platform_get_drvdata(pdev);
124 platform_set_drvdata(pdev,
NULL);
131 .name =
"rtc-au1xxx",
137 static int __init au1xtoy_rtc_init(
void)
142 static void __exit au1xtoy_rtc_exit(
void)