]> git.karo-electronics.de Git - linux-beck.git/commit
spi: atmel: convert from legacy pm ops to dev_pm_ops
authorJingoo Han <jg1.han@samsung.com>
Mon, 9 Sep 2013 08:54:12 +0000 (17:54 +0900)
committerMark Brown <broonie@linaro.org>
Mon, 16 Sep 2013 23:13:57 +0000 (00:13 +0100)
commitec60dd37e1d907d0524fa4c5806ecf24b16ea712
treeb15ff3f9fe7e60f6706ecc5d4a860812ed629614
parent272b98c6455f00884f0350f775c5342358ebb73f
spi: atmel: convert from legacy pm ops to dev_pm_ops

Instead of using legacy suspend/resume methods, using newer
dev_pm_ops structure allows better control over power management.
Also, duplicated 'return' is removed from atmel_spi_resume().

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-atmel.c