提交 ba811add 编写于 作者: J Jingoo Han 提交者: 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: NJingoo Han <jg1.han@samsung.com>
Signed-off-by: NMark Brown <broonie@linaro.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册