usb: phy: twl6030-usb: check regulator_enable return value
authorFabio Baltieri <fabio.baltieri@linaro.org>
Wed, 3 Apr 2013 14:02:27 +0000 (16:02 +0200)
committerFelipe Balbi <balbi@ti.com>
Wed, 3 Apr 2013 15:44:49 +0000 (18:44 +0300)
commitbb54542cfaac0e7949925b774b04b7ea069b80d1
treed4d16a6a0d351ad53544f2039376e5485e8c7aec
parent9ec602ecb199653a16e1eb909551b7ba77d79922
usb: phy: twl6030-usb: check regulator_enable return value

Since regulator_enable() is going to be marked as __must_check in the
next merge window, always check regulator_enable() return value and
print a warning if it fails.

Cc: Hema HK <hemahk@ti.com>
Signed-off-by: Fabio Baltieri <fabio.baltieri@linaro.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/phy/phy-twl6030-usb.c