Message ID | 003801cf3292$0b03b4c0$210b1e40$%han@samsung.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 1480916ebd6fc9c54da5e9e09cf342a061063e39 |
Delegated to: | Mark Brown |
Headers | show |
On Wed, Feb 26, 2014 at 10:28:24AM +0900, Jingoo Han wrote:
> Use SIMPLE_DEV_PM_OPS macro in order to make the code simpler.
Applied, thanks.
diff --git a/drivers/spi/spi-bcm63xx-hsspi.c b/drivers/spi/spi-bcm63xx-hsspi.c index 3ad3e0c..5a211e9 100644 --- a/drivers/spi/spi-bcm63xx-hsspi.c +++ b/drivers/spi/spi-bcm63xx-hsspi.c @@ -454,9 +454,8 @@ static int bcm63xx_hsspi_resume(struct device *dev) } #endif -static const struct dev_pm_ops bcm63xx_hsspi_pm_ops = { - SET_SYSTEM_SLEEP_PM_OPS(bcm63xx_hsspi_suspend, bcm63xx_hsspi_resume) -}; +static SIMPLE_DEV_PM_OPS(bcm63xx_hsspi_pm_ops, bcm63xx_hsspi_suspend, + bcm63xx_hsspi_resume); static struct platform_driver bcm63xx_hsspi_driver = { .driver = {
Use SIMPLE_DEV_PM_OPS macro in order to make the code simpler. Signed-off-by: Jingoo Han <jg1.han@samsung.com> --- drivers/spi/spi-bcm63xx-hsspi.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)