summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-rspi.c
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@stericsson.com>2012-09-26 18:06:22 +0200
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-09-28 14:05:07 +0100
commitada7aec7eec0ca2d2a9d2208548813d5dda8108e (patch)
tree7620085b15946b76cd480d01695968c736a886bf /drivers/spi/spi-rspi.c
parentaeef9915b9a40d257ec94f9900a3fb4a15da2ab7 (diff)
downloadtalos-obmc-linux-ada7aec7eec0ca2d2a9d2208548813d5dda8108e.tar.gz
talos-obmc-linux-ada7aec7eec0ca2d2a9d2208548813d5dda8108e.zip
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 <vipulkumar.samar@st.com> Cc: Viresh Kumar <viresh.kumar@linaro.org> Acked-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@stericsson.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/spi/spi-rspi.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud