Skip to content

Commit

Permalink
extcon: palmas: 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 0414855 commit 8d4288f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/extcon/extcon-palmas.c
Original file line number Diff line number Diff line change
Expand Up @@ -271,10 +271,7 @@ static int palmas_usb_resume(struct device *dev)
};
#endif

static const struct dev_pm_ops palmas_pm_ops = {
SET_SYSTEM_SLEEP_PM_OPS(palmas_usb_suspend,
palmas_usb_resume)
};
static SIMPLE_DEV_PM_OPS(palmas_pm_ops, palmas_usb_suspend, palmas_usb_resume);

static struct of_device_id of_palmas_match_tbl[] = {
{ .compatible = "ti,palmas-usb", },
Expand Down

0 comments on commit 8d4288f

Please sign in to comment.