Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 282417
b: refs/heads/master
c: 3db8a53
h: refs/heads/master
i:
  282415: 4c72db1
v: v3
  • Loading branch information
Dmitry Torokhov committed Jan 5, 2012
1 parent 68e35e2 commit cb1f004
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ee9dfd7a1d1256b0f51a0bf54bed0a8927c8e2ea
refs/heads/master: 3db8a537c6e2270bb09aadc229407b3532c57a81
12 changes: 6 additions & 6 deletions trunk/drivers/input/touchscreen/ucb1400_ts.c
Original file line number Diff line number Diff line change
Expand Up @@ -428,10 +428,10 @@ static int ucb1400_ts_remove(struct platform_device *dev)
return 0;
}

#ifdef CONFIG_PM
static int ucb1400_ts_resume(struct platform_device *dev)
#ifdef CONFIG_PM_SLEEP
static int ucb1400_ts_resume(struct device *dev)
{
struct ucb1400_ts *ucb = dev->dev.platform_data;
struct ucb1400_ts *ucb = dev->platform_data;

if (ucb->ts_task) {
/*
Expand All @@ -444,16 +444,16 @@ static int ucb1400_ts_resume(struct platform_device *dev)
}
return 0;
}
#else
#define ucb1400_ts_resume NULL
#endif

static SIMPLE_DEV_PM_OPS(ucb1400_ts_pm_ops, NULL, ucb1400_ts_resume);

static struct platform_driver ucb1400_ts_driver = {
.probe = ucb1400_ts_probe,
.remove = ucb1400_ts_remove,
.resume = ucb1400_ts_resume,
.driver = {
.name = "ucb1400_ts",
.pm = &ucb1400_ts_pm_ops,
},
};
module_platform_driver(ucb1400_ts_driver);
Expand Down

0 comments on commit cb1f004

Please sign in to comment.