Home
last modified time | relevance | path

Searched hist:"75 ed26878b4cc0ca1c9d8ed5a642b45b60c231d9" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/pcmcia/
H A Dsoc_common.cdiff 75ed26878b4cc0ca1c9d8ed5a642b45b60c231d9 Thu Nov 10 10:44:53 CST 2016 Arnd Bergmann <arnd@arndb.de> pcmcia: fix return value of soc_pcmcia_regulator_set

The newly introduced soc_pcmcia_regulator_set() function sometimes
returns without setting its return code, as shown by this warning:

drivers/pcmcia/soc_common.c: In function 'soc_pcmcia_regulator_set':
drivers/pcmcia/soc_common.c:112:5: error: 'ret' may be used uninitialized in this function [-Werror=maybe-uninitialized]

This changes it to propagate the regulator_disable() result instead.

Fixes: ac61b6001a63 ("pcmcia: soc_common: add support for Vcc and Vpp regulators")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>