Merge "usb: phy-msm-usb: Return when usb power supply psy is NULL"

This commit is contained in:
Linux Build Service Account 2014-08-04 08:30:45 -07:00 committed by Gerrit - the friendly Code Review server
commit 33ab881b3d
1 changed files with 3 additions and 1 deletions

View File

@ -1442,8 +1442,10 @@ psy_error:
static void msm_otg_set_online_status(struct msm_otg *motg)
{
if (!psy)
if (!psy) {
dev_dbg(motg->phy.dev, "no usb power supply registered\n");
return;
}
/* Set power supply online status to false */
if (power_supply_set_online(psy, false))