Skip to content

Commit

Permalink
spi: fsl-dspi: Use SIMPLE_DEV_PM_OPS macro
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jingoo Han authored and Mark Brown committed Mar 5, 2014
1 parent 88386e8 commit ba811ad
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/spi/spi-fsl-dspi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ba811ad

Please sign in to comment.