Commit 775c93a7 authored by Niklas Söderlund's avatar Niklas Söderlund Committed by Linus Walleij
Browse files

docs: pin-control: Fix error path for control state example

parent 8a83ecd8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1235,7 +1235,7 @@ default state like this::
		foo->s = pinctrl_lookup_state(foo->p, PINCTRL_STATE_DEFAULT);
		if (IS_ERR(foo->s)) {
			/* FIXME: clean up "foo" here */
			return PTR_ERR(s);
			return PTR_ERR(foo->s);
		}

		ret = pinctrl_select_state(foo->s);