projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88386e8
)
spi: fsl-dspi: Use SIMPLE_DEV_PM_OPS macro
author
Jingoo Han
<jg1.han@samsung.com>
Wed, 26 Feb 2014 01:30:14 +0000
(10:30 +0900)
committer
Mark 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/spi/spi-fsl-dspi.c
b/drivers/spi/spi-fsl-dspi.c
index 42ede0d796a7717b9b791d6534b67af79fa0afb7..7f0dddb21833e95fac93e4378b302c6261e80f49 100644
(file)
--- 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,