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

Commit 2dc8a881 authored by Tatenda Chipeperekwa's avatar Tatenda Chipeperekwa Committed by Gerrit - the friendly Code Review server
Browse files

drm/msm/dp: return an error if AUX switch parsing fails



Return an error code in order to inform the caller of the
failure. In this case, the error code should trigger the
deferral of the probe for this driver.

Change-Id: I37b7747e40f10e06b49498f0a46ded6bb44274f2
Signed-off-by: default avatarTatenda Chipeperekwa <tatendac@codeaurora.org>
parent a84e1aab
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
 */

#define pr_fmt(fmt)	"[drm-dp] %s: " fmt, __func__
@@ -1858,6 +1858,7 @@ static int dp_display_init_aux_switch(struct dp_display_private *dp)
			phandle, 0);
	if (!dp->aux_switch_node) {
		pr_warn("cannot parse %s handle\n", phandle);
		rc = -ENODEV;
		goto end;
	}