]> nv-tegra.nvidia Code Review - linux-2.6.git/blobdiff - drivers/acpi/power.c
Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux...
[linux-2.6.git] / drivers / acpi / power.c
index 21fc8bf0d31f953e5bb1310bf5e9e9e65668f8ae..81e4f081a4aefd2d53d3004fae15d0935610bb90 100644 (file)
@@ -122,7 +122,7 @@ acpi_power_get_context(acpi_handle handle,
        }
 
        *resource = acpi_driver_data(device);
-       if (!resource)
+       if (!*resource)
                return -ENODEV;
 
        return 0;