summaryrefslogtreecommitdiff
path: root/drivers/mfd
diff options
context:
space:
mode:
authorJohnny Qiu <joqiu@nvidia.com>2012-03-01 16:12:56 +0800
committerSimone Willett <swillett@nvidia.com>2012-03-01 17:15:50 -0800
commitfcd07a83a1fb71ae83b1c87799baeadaf9c7fa2d (patch)
tree0b5a6ee3b2140baac7a3dcb8ea3ca6528ede52c2 /drivers/mfd
parent002e0c315182ee79b2fdd56e730b28d53d69cab8 (diff)
Revert "mfd: max77663: add support for status LED control through PMU GPIO"
This reverts commit 11c94f0d529a089f8cc37311258fd518be576383. Stat LED control through PMU GPIO should be implemented in another way. No need to touch PMU driver. Change-Id: Iecde818425640616df0a92339e1c0e8b323800bd Signed-off-by: Johnny Qiu <joqiu@nvidia.com> Reviewed-on: http://git-master/r/86828 Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/max77663-core.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/mfd/max77663-core.c b/drivers/mfd/max77663-core.c
index 2ecb84d543df..137c04b01e0d 100644
--- a/drivers/mfd/max77663-core.c
+++ b/drivers/mfd/max77663-core.c
@@ -1358,13 +1358,8 @@ static int max77663_suspend(struct device *dev)
{
struct i2c_client *client = to_i2c_client(dev);
struct max77663_chip *chip = i2c_get_clientdata(client);
- struct max77663_platform_data *pdata = chip->pdata;
int ret;
- /* PMU_STAT_LED */
- if (pdata->has_stat_led)
- max77663_gpio_dir_input(&chip->gpio, pdata->stat_led_gpio);
-
if (client->irq)
disable_irq(client->irq);
@@ -1379,7 +1374,6 @@ static int max77663_resume(struct device *dev)
{
struct i2c_client *client = to_i2c_client(dev);
struct max77663_chip *chip = i2c_get_clientdata(client);
- struct max77663_platform_data *pdata = chip->pdata;
int ret;
ret = max77663_sleep(chip, false);
@@ -1391,12 +1385,6 @@ static int max77663_resume(struct device *dev)
if (client->irq)
enable_irq(client->irq);
- /* PMU_STAT_LED */
- if (pdata->has_stat_led) {
- max77663_gpio_dir_output(&chip->gpio, MAX77663_GPIO7,
- pdata->stat_led_active_low ? 0 : 1);
- }
-
return 0;
}
#else