|
@@ -1005,9 +1005,8 @@ static int ghes_probe(struct platform_device *ghes_dev)
|
|
|
|
|
|
switch (generic->notify.type) {
|
|
switch (generic->notify.type) {
|
|
case ACPI_HEST_NOTIFY_POLLED:
|
|
case ACPI_HEST_NOTIFY_POLLED:
|
|
- ghes->timer.function = ghes_poll_func;
|
|
|
|
- ghes->timer.data = (unsigned long)ghes;
|
|
|
|
- init_timer_deferrable(&ghes->timer);
|
|
|
|
|
|
+ setup_deferrable_timer(&ghes->timer, ghes_poll_func,
|
|
|
|
+ (unsigned long)ghes);
|
|
ghes_add_timer(ghes);
|
|
ghes_add_timer(ghes);
|
|
break;
|
|
break;
|
|
case ACPI_HEST_NOTIFY_EXTERNAL:
|
|
case ACPI_HEST_NOTIFY_EXTERNAL:
|