Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 33ab881b authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 8e445c76 85bdc3ec
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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))