From: Sebastian Capella Date: Tue, 22 Apr 2014 00:30:46 +0000 (-0700) Subject: PM / hibernate: no kernel_power_off when pm_power_off NULL X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c730785d9532d2a9c46e059bd6a6c9a764c539f;p=pandora-kernel.git PM / hibernate: no kernel_power_off when pm_power_off NULL Reboot logic in kernel/reboot will avoid calling kernel_power_off when pm_power_off is null, and instead uses kernel_halt. Change hibernate's power_down to follow the behavior in the reboot call. Calling the notifier twice (once for SYS_POWER_OFF and again for SYS_HALT) causes a panic during hibernation on Kirkwood Openblocks A6 board. Signed-off-by: Sebastian Capella Reported-by: Ezequiel Garcia Reviewed-by: Pavel Machek Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed