rtc-efi.c (14e77332e74603efab8347c89d3cda447c3b97c9) rtc-efi.c (eec79501cce6e8965e92174760c6a9e92d78a038)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * rtc-efi: RTC Class Driver for EFI-based systems
4 *
5 * Copyright (C) 2009 Hewlett-Packard Development Company, L.P.
6 *
7 * Author: dann frazier <dannf@dannf.org>
8 * Based on efirtc.c by Stephane Eranian

--- 257 unchanged lines hidden (view full) ---

266 return PTR_ERR(rtc);
267
268 platform_set_drvdata(dev, rtc);
269
270 rtc->ops = &efi_rtc_ops;
271 clear_bit(RTC_FEATURE_UPDATE_INTERRUPT, rtc->features);
272 set_bit(RTC_FEATURE_ALARM_WAKEUP_ONLY, rtc->features);
273
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * rtc-efi: RTC Class Driver for EFI-based systems
4 *
5 * Copyright (C) 2009 Hewlett-Packard Development Company, L.P.
6 *
7 * Author: dann frazier <dannf@dannf.org>
8 * Based on efirtc.c by Stephane Eranian

--- 257 unchanged lines hidden (view full) ---

266 return PTR_ERR(rtc);
267
268 platform_set_drvdata(dev, rtc);
269
270 rtc->ops = &efi_rtc_ops;
271 clear_bit(RTC_FEATURE_UPDATE_INTERRUPT, rtc->features);
272 set_bit(RTC_FEATURE_ALARM_WAKEUP_ONLY, rtc->features);
273
274 device_init_wakeup(&dev->dev, true);
275
274 return devm_rtc_register_device(rtc);
275}
276
277static struct platform_driver efi_rtc_driver = {
278 .driver = {
279 .name = "rtc-efi",
280 },
281};
282
283module_platform_driver_probe(efi_rtc_driver, efi_rtc_probe);
284
285MODULE_AUTHOR("dann frazier <dannf@dannf.org>");
286MODULE_LICENSE("GPL");
287MODULE_DESCRIPTION("EFI RTC driver");
288MODULE_ALIAS("platform:rtc-efi");
276 return devm_rtc_register_device(rtc);
277}
278
279static struct platform_driver efi_rtc_driver = {
280 .driver = {
281 .name = "rtc-efi",
282 },
283};
284
285module_platform_driver_probe(efi_rtc_driver, efi_rtc_probe);
286
287MODULE_AUTHOR("dann frazier <dannf@dannf.org>");
288MODULE_LICENSE("GPL");
289MODULE_DESCRIPTION("EFI RTC driver");
290MODULE_ALIAS("platform:rtc-efi");