Arnd Bergmann 75ed26878b 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>
2016-11-11 08:45:08 -08:00
..
2009-10-24 17:13:01 +02:00
2015-01-12 05:04:12 -08:00
2015-06-26 14:51:15 -07:00
2016-09-12 10:57:00 +01:00
2008-06-24 15:33:37 +02:00
2010-11-01 15:38:34 -04:00
2010-11-01 15:38:34 -04:00
2015-03-16 21:31:43 +01:00
2015-03-16 21:31:43 +01:00
2010-11-10 14:29:09 +01:00
2012-05-07 09:56:39 +08:00
2015-01-12 05:04:12 -08:00
2012-11-28 12:10:16 -08:00