File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -798,6 +798,14 @@ static void acpi_rtc_event_setup(struct device *dev)
798
798
acpi_disable_event (ACPI_EVENT_RTC , 0 );
799
799
}
800
800
801
+ static void acpi_rtc_event_cleanup (void )
802
+ {
803
+ if (acpi_disabled )
804
+ return ;
805
+
806
+ acpi_remove_fixed_event_handler (ACPI_EVENT_RTC , rtc_handler );
807
+ }
808
+
801
809
static void rtc_wake_on (struct device * dev )
802
810
{
803
811
acpi_clear_event (ACPI_EVENT_RTC );
@@ -884,6 +892,10 @@ static inline void acpi_rtc_event_setup(struct device *dev)
884
892
{
885
893
}
886
894
895
+ static inline void acpi_rtc_event_cleanup (void )
896
+ {
897
+ }
898
+
887
899
static inline void acpi_cmos_wake_setup (struct device * dev )
888
900
{
889
901
}
@@ -1138,6 +1150,9 @@ static void cmos_do_remove(struct device *dev)
1138
1150
hpet_unregister_irq_handler (cmos_interrupt );
1139
1151
}
1140
1152
1153
+ if (!dev_get_platdata (dev ))
1154
+ acpi_rtc_event_cleanup ();
1155
+
1141
1156
cmos -> rtc = NULL ;
1142
1157
1143
1158
ports = cmos -> iomem ;
You can’t perform that action at this time.
0 commit comments