extcon: gpio: Use SIMPLE_DEV_PM_OPS macro
authorJingoo Han <jg1.han@samsung.com>
Thu, 27 Feb 2014 11:37:15 +0000 (20:37 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 19 Mar 2014 04:45:42 +0000 (13:45 +0900)
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: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-gpio.c

index a63a6b21c9ad4a539e311ff17899491922efaa54..13d522255d818e924465d8c63fb653a5737a4bef 100644 (file)
@@ -176,9 +176,7 @@ static int gpio_extcon_resume(struct device *dev)
 }
 #endif
 
-static const struct dev_pm_ops gpio_extcon_pm_ops = {
-       SET_SYSTEM_SLEEP_PM_OPS(NULL, gpio_extcon_resume)
-};
+static SIMPLE_DEV_PM_OPS(gpio_extcon_pm_ops, NULL, gpio_extcon_resume);
 
 static struct platform_driver gpio_extcon_driver = {
        .probe          = gpio_extcon_probe,
This page took 0.024736 seconds and 5 git commands to generate.