mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 12:10:52 -04:00
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 <[email protected]> Signed-off-by: Mark Brown <[email protected]>
This commit is contained in:
parent
88386e858b
commit
ba811addff
1 changed files with 1 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue