diff options
author | Jingoo Han <jg1.han@samsung.com> | 2014-02-26 05:30:14 +0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-03-05 08:54:13 +0400 |
commit | ba811addff3d29d1ea9861dbfc06e8ef80714f94 (patch) | |
tree | cb30309197a8d75315d6a5a6977bfe8d403d8d1b /drivers/spi/spi-fsl-dspi.c | |
parent | 88386e858bbb21eb05c15c040dbb3e6ad1cb3568 (diff) | |
download | linux-ba811addff3d29d1ea9861dbfc06e8ef80714f94.tar.xz |
spi: fsl-dspi: Use SIMPLE_DEV_PM_OPS macro
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>
Diffstat (limited to 'drivers/spi/spi-fsl-dspi.c')
-rw-r--r-- | drivers/spi/spi-fsl-dspi.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/spi/spi-fsl-dspi.c b/drivers/spi/spi-fsl-dspi.c index 42ede0d796a7..7f0dddb21833 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, |