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

Commit b672a87a authored by Linus Walleij's avatar Linus Walleij
Browse files

pinctrl: core: Do not add device links for hogs



Hogs would create circular device links, so do not link
the device to itself.

Cc: Benjamin Gaignard <benjamin.gaignard@st.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent c6045b4e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1271,6 +1271,8 @@ static int pinctrl_commit_state(struct pinctrl *p, struct pinctrl_state *state)
			goto unapply_new_state;
		}

		/* Do not link hogs (circular dependency) */
		if (p != setting->pctldev->p)
			pinctrl_link_add(setting->pctldev, p->dev);
	}