From: Sergei Shtylyov Date: Fri, 16 Jan 2015 21:56:02 +0000 (-0800) Subject: sh-sci: extend PM methods X-Git-Tag: fixes-v4.0-rc1~98^2~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb8763417224340f9a6092092077c801ce686eba;p=pandora-kernel.git sh-sci: extend PM methods In order to make it possible to restore from hibernation not only in Linux but also in e.g. U-Boot, we have to use sci_{suspend|remove}() for the PM {freeze| thaw|restore}() methods. It's handy to achieve this by using SIMPLE_DEV_PM_OPS() macro, however we have to annotate sci_{suspend|remove}() with '__maybe_unused' in order to avoid compilation warnings when CONFIG_PM_SLEEP is undefined. Based on orignal patch by Mikhail Ulyanov . Signed-off-by: Sergei Shtylyov Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed