Skip to content

Commit

Permalink
extcon: gpio: 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: Chanwoo Choi <cw00.choi@samsung.com>
  • Loading branch information
Jingoo Han authored and Chanwoo Choi committed Mar 19, 2014
1 parent 8d4288f commit 3cc731d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/extcon/extcon-gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3cc731d

Please sign in to comment.