aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/power.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/power.c')
-rw-r--r--drivers/acpi/power.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/power.c b/drivers/acpi/power.c
index 21fc8bf0d31f..81e4f081a4ae 100644
--- a/drivers/acpi/power.c
+++ b/drivers/acpi/power.c
@@ -122,7 +122,7 @@ acpi_power_get_context(acpi_handle handle,
122 } 122 }
123 123
124 *resource = acpi_driver_data(device); 124 *resource = acpi_driver_data(device);
125 if (!resource) 125 if (!*resource)
126 return -ENODEV; 126 return -ENODEV;
127 127
128 return 0; 128 return 0;