Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 319170
b: refs/heads/master
c: 5692d2a
h: refs/heads/master
v: v3
  • Loading branch information
Shubhrajyoti D authored and Wolfram Sang committed Jul 12, 2012
1 parent af96c77 commit 128819e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: d790aea70d714c1ba58823b4dc1b445f1e791072
refs/heads/master: 5692d2a22ed9c1a1bc3030bd8188f335b1b0b58c
8 changes: 5 additions & 3 deletions trunk/drivers/i2c/busses/i2c-omap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1126,6 +1126,7 @@ static int __devexit omap_i2c_remove(struct platform_device *pdev)
return 0;
}

#ifdef CONFIG_PM
#ifdef CONFIG_PM_RUNTIME
static int omap_i2c_runtime_suspend(struct device *dev)
{
Expand Down Expand Up @@ -1174,15 +1175,16 @@ static int omap_i2c_runtime_resume(struct device *dev)

return 0;
}
#endif /* CONFIG_PM_RUNTIME */

static struct dev_pm_ops omap_i2c_pm_ops = {
.runtime_suspend = omap_i2c_runtime_suspend,
.runtime_resume = omap_i2c_runtime_resume,
SET_RUNTIME_PM_OPS(omap_i2c_runtime_suspend,
omap_i2c_runtime_resume, NULL)
};
#define OMAP_I2C_PM_OPS (&omap_i2c_pm_ops)
#else
#define OMAP_I2C_PM_OPS NULL
#endif
#endif /* CONFIG_PM */

static struct platform_driver omap_i2c_driver = {
.probe = omap_i2c_probe,
Expand Down

0 comments on commit 128819e

Please sign in to comment.