mfd: tps80031: fix compilation warning
Laxman Dewangan [Thu, 19 Jul 2012 10:13:58 +0000 (15:13 +0530)]
Fixing compilation warning:

kernel/drivers/mfd/tps80031.c: In function 'tps80031_init_ext_control.isra.4':
kernel/drivers/mfd/tps80031.c:594:6: warning: 'ret' is used uninitialized in this
function [-Wuninitialized]

Change-Id: I7d9cfab7b03ffe085ef4db7c9b08b0f2cb4e6fec
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/117329
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit

drivers/mfd/tps80031.c

index f0f2ce1..b4c51e3 100644 (file)
@@ -589,7 +589,7 @@ static void tps80031_init_ext_control(struct tps80031 *tps80031,
 
        /* Clear all external control for this rail */
        for (i = 0; i < 9; ++i) {
-               tps80031_write(tps80031->dev, SLAVE_ID1,
+               ret = tps80031_write(tps80031->dev, SLAVE_ID1,
                                TPS80031_PREQ1_RES_ASS_A + i, 0);
                if (ret < 0)
                        dev_err(tps80031->dev, "%s() Error in clearing "