diff mbox

[2/3] spi: fsl-dspi: Use SIMPLE_DEV_PM_OPS macro

Message ID 003901cf3292$4cb09a50$e611cef0$%han@samsung.com (mailing list archive)
State Accepted
Commit ba811addff3d29d1ea9861dbfc06e8ef80714f94
Delegated to: Mark Brown
Headers show

Commit Message

Jingoo Han Feb. 26, 2014, 1:30 a.m. UTC
Use SIMPLE_DEV_PM_OPS macro in order to make the code simpler.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
 drivers/spi/spi-fsl-dspi.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Comments

Mark Brown March 5, 2014, 6:05 a.m. UTC | #1
On Wed, Feb 26, 2014 at 10:30:14AM +0900, Jingoo Han wrote:
> Use SIMPLE_DEV_PM_OPS macro in order to make the code simpler.

Applied, thanks.
diff mbox

Patch

diff --git a/drivers/spi/spi-fsl-dspi.c b/drivers/spi/spi-fsl-dspi.c
index 42ede0d..7f0dddb 100644
--- a/drivers/spi/spi-fsl-dspi.c
+++ b/drivers/spi/spi-fsl-dspi.c
@@ -437,9 +437,7 @@  static int dspi_resume(struct device *dev)
 }
 #endif /* CONFIG_PM_SLEEP */
 
-static const struct dev_pm_ops dspi_pm = {
-	SET_SYSTEM_SLEEP_PM_OPS(dspi_suspend, dspi_resume)
-};
+static SIMPLE_DEV_PM_OPS(dspi_pm, dspi_suspend, dspi_resume);
 
 static struct regmap_config dspi_regmap_config = {
 	.reg_bits = 32,