|
@@ -3,7 +3,7 @@
|
|
*
|
|
*
|
|
* Copyright (c) 2003 Patrick Mochel
|
|
* Copyright (c) 2003 Patrick Mochel
|
|
* Copyright (c) 2003 Open Source Development Lab
|
|
* Copyright (c) 2003 Open Source Development Lab
|
|
- *
|
|
|
|
|
|
+ *
|
|
* This file is released under the GPLv2
|
|
* This file is released under the GPLv2
|
|
*
|
|
*
|
|
*/
|
|
*/
|
|
@@ -240,7 +240,7 @@ struct kobject *power_kobj;
|
|
* 'standby' (Power-On Suspend), 'mem' (Suspend-to-RAM), and
|
|
* 'standby' (Power-On Suspend), 'mem' (Suspend-to-RAM), and
|
|
* 'disk' (Suspend-to-Disk).
|
|
* 'disk' (Suspend-to-Disk).
|
|
*
|
|
*
|
|
- * store() accepts one of those strings, translates it into the
|
|
|
|
|
|
+ * store() accepts one of those strings, translates it into the
|
|
* proper enumerated value, and initiates a suspend transition.
|
|
* proper enumerated value, and initiates a suspend transition.
|
|
*/
|
|
*/
|
|
static ssize_t state_show(struct kobject *kobj, struct kobj_attribute *attr,
|
|
static ssize_t state_show(struct kobject *kobj, struct kobj_attribute *attr,
|
|
@@ -282,7 +282,7 @@ static ssize_t state_store(struct kobject *kobj, struct kobj_attribute *attr,
|
|
/* First, check if we are requested to hibernate */
|
|
/* First, check if we are requested to hibernate */
|
|
if (len == 4 && !strncmp(buf, "disk", len)) {
|
|
if (len == 4 && !strncmp(buf, "disk", len)) {
|
|
error = hibernate();
|
|
error = hibernate();
|
|
- goto Exit;
|
|
|
|
|
|
+ goto Exit;
|
|
}
|
|
}
|
|
|
|
|
|
#ifdef CONFIG_SUSPEND
|
|
#ifdef CONFIG_SUSPEND
|