]> git.karo-electronics.de Git - linux-beck.git/commitdiff
spi: fsl-dspi: Use SIMPLE_DEV_PM_OPS macro
authorJingoo Han <jg1.han@samsung.com>
Wed, 26 Feb 2014 01:30:14 +0000 (10:30 +0900)
committerMark Brown <broonie@linaro.org>
Wed, 5 Mar 2014 04:54:13 +0000 (12:54 +0800)
Use SIMPLE_DEV_PM_OPS macro in order to make the code simpler.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-fsl-dspi.c

index 42ede0d796a7717b9b791d6534b67af79fa0afb7..7f0dddb21833e95fac93e4378b302c6261e80f49 100644 (file)
@@ -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,