diff options
| -rw-r--r-- | drivers/acpi/scan.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index 7f2e051ed4f1..449ada016d81 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c | |||
| @@ -764,8 +764,9 @@ static void acpi_bus_set_run_wake_flags(struct acpi_device *device) | |||
| 764 | return; | 764 | return; |
| 765 | } | 765 | } |
| 766 | 766 | ||
| 767 | status = acpi_get_gpe_status(NULL, device->wakeup.gpe_number, | 767 | status = acpi_get_gpe_status(device->wakeup.gpe_device, |
| 768 | &event_status); | 768 | device->wakeup.gpe_number, |
| 769 | &event_status); | ||
| 769 | if (status == AE_OK) | 770 | if (status == AE_OK) |
| 770 | device->wakeup.flags.run_wake = | 771 | device->wakeup.flags.run_wake = |
| 771 | !!(event_status & ACPI_EVENT_FLAG_HANDLE); | 772 | !!(event_status & ACPI_EVENT_FLAG_HANDLE); |
