From: Sebastian Capella Date: Fri, 14 Feb 2014 22:52:56 +0000 (-0800) Subject: PM / hibernate: use name_to_dev_t to parse resume X-Git-Tag: v3.15-rc1~151^2~4^3~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=421a5fa1a6cfc037a21220b638d4def6da7cbabe;p=pandora-kernel.git PM / hibernate: use name_to_dev_t to parse resume Use the name_to_dev_t call to parse the device name echo'd to to /sys/power/resume. This imitates the method used in hibernate.c in software_resume, and allows the resume partition to be specified using other equivalent device formats as well. By allowing /sys/debug/resume to accept the same syntax as the resume=device parameter, we can parse the resume=device in the init script and use the resume device directly from the kernel command line. Signed-off-by: Sebastian Capella Acked-by: Pavel Machek Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed