[PATCH] usb: chipidea-imx: check return value of regulator_get()

Sascha Hauer s.hauer at pengutronix.de
Thu Jan 7 23:52:51 PST 2016


On Thu, Jan 07, 2016 at 10:55:00AM +0100, Lucas Stach wrote:
> From: David Jander <david at protonic.nl>
> 
> The VBUS regulator is optional for the chipidea-imx glue, so it must
> be checked if regulator_get provided a valid regulator handle before
> trying to enable the regulator.
> 
> Signed-off-by: David Jander <david at protonic.nl>
> Signed-off-by: Lucas Stach <l.stach at pengutronix.de>
> ---
> lst: reworded commit message
> ---
>  drivers/usb/imx/chipidea-imx.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

Applied, thanks

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list