]> git.baikalelectronics.ru Git - kernel.git/commit
usb: phy: ab8500-usb: check regulator_enable return value
authorFabio Baltieri <fabio.baltieri@linaro.org>
Wed, 3 Apr 2013 14:02:25 +0000 (16:02 +0200)
committerFelipe Balbi <balbi@ti.com>
Wed, 3 Apr 2013 14:15:18 +0000 (17:15 +0300)
commit376e322828c0cf0cb532915e0e618cca0f5c2b53
tree473542089e2da9b8cc8ee281a9083dd71eca866e
parent7c22f43bd231e538e6f6e1025ef62204c242909b
usb: phy: ab8500-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: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Fabio Baltieri <fabio.baltieri@linaro.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/phy/phy-ab8500-usb.c