aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/power/disk.c
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@shinybook.infradead.org>2005-07-13 10:25:59 -0400
committerDavid Woodhouse <dwmw2@shinybook.infradead.org>2005-07-13 10:25:59 -0400
commit30beab1491f0b96b2f23d3fb68af01fd921a16d8 (patch)
treec580bdc0846269fbb10feeda901ecec1a48ee2ef /kernel/power/disk.c
parent21af6c4f2aa5f63138871b4ddd77d7ebf2588c9d (diff)
parentc32511e2718618f0b53479eb36e07439aa363a74 (diff)
Merge with /shiny/git/linux-2.6/.git
Diffstat (limited to 'kernel/power/disk.c')
-rw-r--r--kernel/power/disk.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/kernel/power/disk.c b/kernel/power/disk.c
index fb8de63c2919..3ec789c6b537 100644
--- a/kernel/power/disk.c
+++ b/kernel/power/disk.c
@@ -16,6 +16,8 @@
16#include <linux/device.h> 16#include <linux/device.h>
17#include <linux/delay.h> 17#include <linux/delay.h>
18#include <linux/fs.h> 18#include <linux/fs.h>
19#include <linux/mount.h>
20
19#include "power.h" 21#include "power.h"
20 22
21 23
@@ -234,6 +236,16 @@ static int software_resume(void)
234{ 236{
235 int error; 237 int error;
236 238
239 if (!swsusp_resume_device) {
240 if (!strlen(resume_file))
241 return -ENOENT;
242 swsusp_resume_device = name_to_dev_t(resume_file);
243 pr_debug("swsusp: Resume From Partition %s\n", resume_file);
244 } else {
245 pr_debug("swsusp: Resume From Partition %d:%d\n",
246 MAJOR(swsusp_resume_device), MINOR(swsusp_resume_device));
247 }
248
237 if (noresume) { 249 if (noresume) {
238 /** 250 /**
239 * FIXME: If noresume is specified, we need to find the partition 251 * FIXME: If noresume is specified, we need to find the partition