diff options
author | Prashant Gaikwad <pgaikwad@nvidia.com> | 2013-10-30 19:31:43 +0530 |
---|---|---|
committer | Bharat Nihalani <bnihalani@nvidia.com> | 2013-11-04 16:32:52 -0800 |
commit | 3e426470ed58a874606364d9b4a4fb9e15feadd7 (patch) | |
tree | 9c2f4ab0441f392e20c901543aeecd47f2c16610 /drivers/i2c | |
parent | 08d85171616e247fb5200496fb86a3060bbaa712 (diff) |
Revert "i2c: tegra: restore i2c after resume from LP0"
This reverts commit 98d2ffb58e7649eb158367a0f4d675939fe5abef.
Instead of using domain for this purpose notifiers will be used.
Change http://git-master/r/#/c/310064 is pushed to achieve this.
Change-Id: Ie463e266d16c5678dafbf7ffa9d110cd1e7b4caf
Reviewed-on: http://git-master/r/309647
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-tegra.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c index 855bde2fac21..25253154efe1 100644 --- a/drivers/i2c/busses/i2c-tegra.c +++ b/drivers/i2c/busses/i2c-tegra.c @@ -42,8 +42,6 @@ #include <asm/unaligned.h> -#include <mach/pm_domains.h> - #define TEGRA_I2C_TIMEOUT (msecs_to_jiffies(1000)) #define TEGRA_I2C_RETRIES 3 #define BYTES_PER_FIFO_WORD 4 @@ -706,21 +704,6 @@ static int tegra_i2c_init(struct tegra_i2c_dev *i2c_dev) return err; } - -int tegra_i2c_restore(struct device *dev) -{ - struct platform_device *pdev = to_platform_device(dev); - struct tegra_i2c_dev *i2c_dev = platform_get_drvdata(pdev); - - i2c_lock_adapter(&i2c_dev->adapter); - - tegra_i2c_init(i2c_dev); - - i2c_unlock_adapter(&i2c_dev->adapter); - - return 0; -} - static int tegra_i2c_copy_next_to_current(struct tegra_i2c_dev *i2c_dev) { i2c_dev->msg_buf = i2c_dev->next_msg_buf; @@ -1531,7 +1514,6 @@ static int tegra_i2c_probe(struct platform_device *pdev) return ret; } - tegra_pd_add_device(&pdev->dev); pm_runtime_enable(&pdev->dev); i2c_dev->scl_gpio = pdata->scl_gpio; |