pcmcia: fix return value of soc_pcmcia_regulator_set
[linux-2.6-microblaze.git] / drivers / pcmcia / soc_common.c
index 153f312..b6b316d 100644 (file)
@@ -107,7 +107,7 @@ int soc_pcmcia_regulator_set(struct soc_pcmcia_socket *skt,
 
                ret = regulator_enable(r->reg);
        } else {
-               regulator_disable(r->reg);
+               ret = regulator_disable(r->reg);
        }
        if (ret == 0)
                r->on = on;