diff options
| -rw-r--r-- | drivers/platform/x86/pvpanic.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/platform/x86/pvpanic.c b/drivers/platform/x86/pvpanic.c index 073a90a63dbc..fd86daba7ffd 100644 --- a/drivers/platform/x86/pvpanic.c +++ b/drivers/platform/x86/pvpanic.c | |||
| @@ -92,13 +92,13 @@ pvpanic_walk_resources(struct acpi_resource *res, void *context) | |||
| 92 | 92 | ||
| 93 | static int pvpanic_add(struct acpi_device *device) | 93 | static int pvpanic_add(struct acpi_device *device) |
| 94 | { | 94 | { |
| 95 | acpi_status status; | 95 | int ret; |
| 96 | u64 ret; | ||
| 97 | 96 | ||
| 98 | status = acpi_evaluate_integer(device->handle, "_STA", NULL, | 97 | ret = acpi_bus_get_status(device); |
| 99 | &ret); | 98 | if (ret < 0) |
| 99 | return ret; | ||
| 100 | 100 | ||
| 101 | if (ACPI_FAILURE(status) || (ret & 0x0B) != 0x0B) | 101 | if (!device->status.enabled || !device->status.functional) |
| 102 | return -ENODEV; | 102 | return -ENODEV; |
| 103 | 103 | ||
| 104 | acpi_walk_resources(device->handle, METHOD_NAME__CRS, | 104 | acpi_walk_resources(device->handle, METHOD_NAME__CRS, |
