pinctrl: exit pinconfig_post_bind if there are no subnodes
authorUrja Rannikko <urjaman@gmail.com>
Fri, 22 Mar 2019 19:14:33 +0000 (19:14 +0000)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Tue, 30 Apr 2019 22:00:05 +0000 (00:00 +0200)
commit63402831e0b68ded49c054989fffdfd88b98953b
tree2b5d36237dd5471bfe0063404726b2baf3e7ea7c
parented9c9059f22f2ee1ada4dbc4603f3688bd70e37c
pinctrl: exit pinconfig_post_bind if there are no subnodes

This fixes RK3288 SPL hanging or hitting this assert:
drivers/core/ofnode.c:183: ofnode_first_subnode: Assertion `ofnode_valid(node)' failed.

Signed-off-by: Urja Rannikko <urjaman@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
drivers/pinctrl/pinctrl-uclass.c