Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7c86d44c authored by Laxman Dewangan's avatar Laxman Dewangan Committed by Wolfram Sang
Browse files

i2c: tegra: convert normal suspend/resume to *_noirq



To provide the late suspend and early resume for i2c
driver, convert the suspend/resume as
	suspend-> suspend_noirq
	resume -> resume_noirq

Signed-off-by: default avatarLaxman Dewangan <ldewangan@nvidia.com>

[wsa: fixed up to match previous pm_ops change]

Signed-off-by: default avatarWolfram Sang <w.sang@pengutronix.de>
parent 6a7b3c3c
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -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);

@@ -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;
@@ -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