Commit ba811add authored by Jingoo Han's avatar Jingoo Han Committed by Mark Brown

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: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 88386e85
...@@ -437,9 +437,7 @@ static int dspi_resume(struct device *dev) ...@@ -437,9 +437,7 @@ static int dspi_resume(struct device *dev)
} }
#endif /* CONFIG_PM_SLEEP */ #endif /* CONFIG_PM_SLEEP */
static const struct dev_pm_ops dspi_pm = { static SIMPLE_DEV_PM_OPS(dspi_pm, dspi_suspend, dspi_resume);
SET_SYSTEM_SLEEP_PM_OPS(dspi_suspend, dspi_resume)
};
static struct regmap_config dspi_regmap_config = { static struct regmap_config dspi_regmap_config = {
.reg_bits = 32, .reg_bits = 32,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment