ide: hook ACPI _PSx method to IDE power on/off
[deliverable/linux.git] / drivers / acpi / bus.c
index 9ba778a2b484ee1601f53ebd6ccd8278741784f0..feab124d8e05fd6b356e0e6bd6d5fe508f7355aa 100644 (file)
@@ -262,10 +262,12 @@ int acpi_bus_set_power(acpi_handle handle, int state)
                printk(KERN_WARNING PREFIX
                              "Transitioning device [%s] to D%d\n",
                              device->pnp.bus_id, state);
-       else
+       else {
+               device->power.state = state;
                ACPI_DEBUG_PRINT((ACPI_DB_INFO,
                                  "Device [%s] transitioned to D%d\n",
                                  device->pnp.bus_id, state));
+       }
 
        return result;
 }
This page took 0.023841 seconds and 5 git commands to generate.