diff options
author | Bitan Biswas <bbiswas@nvidia.com> | 2018-06-13 00:35:28 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-06-15 04:19:04 -0400 |
commit | dc355140875a61d7c1f85d2f7aba7d4c1de0f941 (patch) | |
tree | e2a1f1d0d87757344df0f4586b8fb63d1f08a36d /drivers/i2c | |
parent | ce3925c2da53d1e6024780727f0d62b587e89c75 (diff) |
i2c: slave: t194: fix PM_SLEEP disabled build
Fix build error for T194 enable when CONFIG_PM_SLEEP is disabled
bug 200385931
bug 200381875
Change-Id: I1e8f63e881e7d9d9ba12557eec417212e9ea14e7
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1748035
GVS: Gerrit_Virtual_Submit
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Rakesh Babu Bodla <rbodla@nvidia.com>
Reviewed-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
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) |