regulator: max77660: fix compile warnings
Philip Rakity [Mon, 22 Jul 2013 10:11:20 +0000 (11:11 +0100)]
Change-Id: Ifd2202d642c8d8c7e29c9f8cdbd1a3ace03d54ac
Signed-off-by: Philip Rakity <prakity@nvidia.com>
(cherry picked from commit fde0f5498800b09a13b3f50d92a025a24459a991)
Reviewed-on: http://git-master/r/271470
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

drivers/regulator/max77660-regulator.c

index 672905b..1b5da0d 100644 (file)
@@ -447,7 +447,6 @@ static int max77660_regulator_enable(struct regulator_dev *rdev)
        struct max77660_regulator_platform_data *pdata = reg->pdata;
        int power_mode = (pdata->flags & GLPM_ENABLE) ?
                         POWER_MODE_GLPM : POWER_MODE_NORMAL;
-       int ret;
 
        if (reg->external_flags & MAX77660_EXTERNAL_ENABLE)
                return 0;
@@ -476,7 +475,6 @@ static int max77660_regulator_enable(struct regulator_dev *rdev)
 static int max77660_regulator_disable(struct regulator_dev *rdev)
 {
        struct max77660_regulator *reg = rdev_get_drvdata(rdev);
-       struct max77660_regulator_platform_data *pdata = reg->pdata;
        int power_mode = POWER_MODE_DISABLE;
 
        if (reg->external_flags & MAX77660_EXTERNAL_ENABLE)