dm: pinctrl: Use right device pointer for configuring pinctrl
authorLokesh Vutla <lokeshvutla@ti.com>
Wed, 22 Apr 2020 17:25:31 +0000 (22:55 +0530)
committerTom Rini <trini@konsulko.com>
Thu, 23 Apr 2020 12:25:37 +0000 (08:25 -0400)
commitdbfd9e0e61ff1f9c65703959ed8e3ceb410d1e7e
tree074441bedd553055dbf49e42e298daf3d4c1840a
parenta5f9b8a8b592400a01771ad2dac76cba69c914f3
dm: pinctrl: Use right device pointer for configuring pinctrl

commit 719cab6d2e2bf ("dm: pinctrl: convert pinctrl-single to livetree")
converted pinctrl driver to livetree. In this conversion, the call to
read pinctrl-single,pins/bits property is provided with pinctrl device
pointer instead of pinctrl config pointer. Because of this none of the
pins gets configured. Fix it by passing the right udevice pointer.

Fixes: 719cab6d2e2bf ("dm: pinctrl: convert pinctrl-single to livetree")
Reported-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@st.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
drivers/pinctrl/pinctrl-single.c