From: Linus Walleij Date: Wed, 26 Sep 2012 16:06:22 +0000 (+0200) Subject: spi/pl022: get/put resources on suspend/resume X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~41^2~1^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ada7aec7eec0ca2d2a9d2208548813d5dda8108e;p=pandora-kernel.git spi/pl022: get/put resources on suspend/resume This factors out the resource handling in runtime suspend/resume and also calls it from the ordinary suspend and resume hooks. The semantics require that ordinary PM op suspend is called with runtime PM in resumed mode, so that ordinary suspend can assume that it will e.g. decrease the clock reference counter to 0, runtime resume having previously increased it to 1. Cc: Vipul Kumar Samar Cc: Viresh Kumar Acked-by: Ulf Hansson Signed-off-by: Linus Walleij Signed-off-by: Mark Brown --- Reading git-diff-tree failed