diff mbox

[1/3] spi: bcm63xx-hsspi: Use SIMPLE_DEV_PM_OPS macro

Message ID 003801cf3292$0b03b4c0$210b1e40$%han@samsung.com (mailing list archive)
State Accepted
Commit 1480916ebd6fc9c54da5e9e09cf342a061063e39
Delegated to: Mark Brown
Headers show

Commit Message

Jingoo Han Feb. 26, 2014, 1:28 a.m. UTC
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(-)

Comments

Mark Brown March 5, 2014, 4:53 a.m. UTC | #1
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 mbox

Patch

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 = {