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

Commit 3496a886 authored by Casey Piper's avatar Casey Piper
Browse files

msm: mdss: hdmi: default pinctrl state to null



Default the pinctrl state to NULL before selecting
a pinctrl state. This ensures that IS_ERR_OR_NULL
called on the variable will return true.

Change-Id: I3e798cade45f4ef4179b1883e2eb33c3fd7d851f
Signed-off-by: default avatarCasey Piper <cpiper@codeaurora.org>
parent 9c0d7ef2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1849,7 +1849,7 @@ static void hdmi_tx_set_mode(struct hdmi_tx_ctrl *hdmi_ctrl, u32 power_on)
static int hdmi_tx_pinctrl_set_state(struct hdmi_tx_ctrl *hdmi_ctrl,
			enum hdmi_tx_power_module_type module, bool active)
{
	struct pinctrl_state *pin_state;
	struct pinctrl_state *pin_state = NULL;
	int rc = -EFAULT;
	struct dss_module_power *power_data = NULL;
	u64 cur_pin_states;