diff options
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-tegra194-slave.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-tegra194-slave.c b/drivers/i2c/busses/i2c-tegra194-slave.c index 81d072e4c..5381f51b9 100644 --- a/drivers/i2c/busses/i2c-tegra194-slave.c +++ b/drivers/i2c/busses/i2c-tegra194-slave.c | |||
@@ -704,6 +704,7 @@ static int tegra_i2cslv_remove(struct platform_device *pdev) | |||
704 | return 0; | 704 | return 0; |
705 | } | 705 | } |
706 | 706 | ||
707 | #ifdef CONFIG_PM_SLEEP | ||
707 | static int tegra_i2cslv_suspend(struct device *dev) | 708 | static int tegra_i2cslv_suspend(struct device *dev) |
708 | { | 709 | { |
709 | struct tegra_i2cslv_dev *i2cslv_dev = dev_get_drvdata(dev); | 710 | struct tegra_i2cslv_dev *i2cslv_dev = dev_get_drvdata(dev); |
@@ -739,6 +740,7 @@ exit: | |||
739 | raw_spin_unlock_irqrestore(&i2cslv_dev->xfer_lock, flags); | 740 | raw_spin_unlock_irqrestore(&i2cslv_dev->xfer_lock, flags); |
740 | return ret; | 741 | return ret; |
741 | } | 742 | } |
743 | #endif | ||
742 | 744 | ||
743 | static const struct dev_pm_ops tegra_i2cslv_pm_ops = { | 745 | static const struct dev_pm_ops tegra_i2cslv_pm_ops = { |
744 | SET_SYSTEM_SLEEP_PM_OPS(tegra_i2cslv_suspend, tegra_i2cslv_resume) | 746 | SET_SYSTEM_SLEEP_PM_OPS(tegra_i2cslv_suspend, tegra_i2cslv_resume) |