regulator: as3722: fix unused var warning
Philip Rakity [Tue, 24 Sep 2013 11:54:58 +0000 (12:54 +0100)]
/nvidia/DEV_KERNEL/kernel/drivers/regulator/as3722-regulator.c:
In function 'as3722_ldo3_set_mode':
/nvidia/DEV_KERNEL/kernel/drivers/regulator/as3722-regulator.c:404:6:
warning: unused variable 'val' [-Wunused-variable]

Change-Id: I1b96a5750b6589adc4d9a3d76cd3848f466811b9
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/278344
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit 7887902cf31f4ea819c41f34c4a3099a50b43b52)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

drivers/regulator/as3722-regulator.c

index e03bd2d..52ad194 100644 (file)
@@ -401,7 +401,6 @@ static int as3722_ldo3_get_current_limit(struct regulator_dev *dev)
 
 static int as3722_ldo3_set_mode(struct regulator_dev *dev, u8 mode)
 {
-       u32 val;
        struct as3722 *as3722 = rdev_get_drvdata(dev);
 
        if (mode != AS3722_LDO3_MODE_PMOS && mode