Arnd Bergmann a829abf8da ARM: pxa: propagate errors from regulator_enable() to pxamci
The em_x270_mci_setpower() and em_x270_usb_hub_init() functions
call regulator_enable(), which may return an error that must
be checked.

This changes the em_x270_usb_hub_init() function to bail out
if it fails, and changes the pxamci_platform_data->setpower
callback so that the a failed em_x270_mci_setpower call
can be propagated by the pxamci driver into the mmc core.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Mike Rapoport <mike@compulab.co.il>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: Haojian Zhuang <haojian.zhuang@gmail.com>
Acked-by: Chris Ball <cjb@laptop.org>
[olof: fixed order of regulator_enable() and test in em_x270_usb_hub_init]
Signed-off-by: Olof Johansson <olof@lixom.net>
2013-07-23 12:15:15 -07:00
..
2012-10-19 18:46:51 +01:00
2012-09-17 20:55:54 +01:00
2012-06-30 10:15:07 +01:00
2013-06-11 20:25:58 +01:00
2012-09-08 10:20:09 +01:00
2012-12-05 10:55:54 -08:00
2012-10-09 07:07:14 +09:00
2012-07-11 15:36:45 -07:00
2013-04-29 18:28:13 -07:00
2013-07-05 11:40:26 +05:30
2012-05-18 00:00:45 +02:00
2012-11-02 12:00:36 -07:00
2013-06-04 21:03:56 +09:00
2012-05-22 06:48:02 -07:00
2012-12-03 18:48:23 +01:00
2012-09-23 21:08:33 -07:00
2012-08-16 12:12:25 -07:00
2012-12-12 11:45:16 -08:00
2012-06-13 13:13:37 +01:00
2012-09-14 08:14:07 +05:30
2012-12-06 13:54:51 -05:00
2012-09-18 12:28:22 +02:00
2013-05-25 10:33:30 -04:00