[patch] Cleanup /sys/power/disk

From: Pavel Machek
Date: Fri Aug 26 2005 - 04:42:56 EST


Clean code up a bit, and only show suspend to disk as available when
it is configured in.

--- linux-mm/kernel/power/main.c 2005-08-24 20:21:55.000000000 +0200
+++ linux/kernel/power/main.c 2005-07-13 23:58:57.000000000 +0200
@@ -143,11 +143,12 @@



-static char * pm_states[] = {
+static char * pm_states[PM_SUSPEND_MAX] = {
[PM_SUSPEND_STANDBY] = "standby",
[PM_SUSPEND_MEM] = "mem",
+#ifdef CONFIG_SOFTWARE_SUSPEND
[PM_SUSPEND_DISK] = "disk",
- NULL,
+#endif
};



--
if you have sharp zaurus hardware you don't need... you know my address
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/