17 #include <linux/module.h>
18 #include <linux/device.h>
19 #include <linux/rtc.h>
43 dev_warn(dev,
"Read invalid date/time from RTC\n");
89 platform_set_drvdata(dev, rtc);
99 struct rtc_device *rtc = platform_get_drvdata(dev);
104 platform_set_drvdata(dev,
NULL);
114 .probe = tile_rtc_probe,
121 static int __init tile_rtc_driver_init(
void)
130 if (tile_rtc_platform_device ==
NULL) {
132 goto exit_driver_unregister;
137 goto exit_device_put;
144 exit_driver_unregister:
152 static void __exit tile_rtc_driver_exit(
void)