Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 319168
b: refs/heads/master
c: 7c86d44
h: refs/heads/master
v: v3
  • Loading branch information
Laxman Dewangan authored and Wolfram Sang committed Jul 12, 2012
1 parent d3981f8 commit 38f5a3e
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 6a7b3c3c465cef29d92dfc3fbbff0d958aa8be04
refs/heads/master: 7c86d44cda2e715bc95f525fd0eac4bd6a66998e
9 changes: 6 additions & 3 deletions trunk/drivers/i2c/busses/i2c-tegra.c
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ static int __devexit tegra_i2c_remove(struct platform_device *pdev)
}

#ifdef CONFIG_PM
static int tegra_i2c_suspend(struct device *dev)
static int tegra_i2c_suspend_noirq(struct device *dev)
{
struct tegra_i2c_dev *i2c_dev = dev_get_drvdata(dev);

Expand All @@ -724,7 +724,7 @@ static int tegra_i2c_suspend(struct device *dev)
return 0;
}

static int tegra_i2c_resume(struct device *dev)
static int tegra_i2c_resume_noirq(struct device *dev)
{
struct tegra_i2c_dev *i2c_dev = dev_get_drvdata(dev);
int ret;
Expand All @@ -745,7 +745,10 @@ static int tegra_i2c_resume(struct device *dev)
return 0;
}

static SIMPLE_DEV_PM_OPS(tegra_i2c_pm, tegra_i2c_suspend, tegra_i2c_resume);
static const struct dev_pm_ops tegra_i2c_pm = {
.suspend_noirq = tegra_i2c_suspend_noirq,
.resume_noirq = tegra_i2c_resume_noirq,
};
#define TEGRA_I2C_PM (&tegra_i2c_pm)
#else
#define TEGRA_I2C_PM NULL
Expand Down

0 comments on commit 38f5a3e

Please sign in to comment.