svn commit: r335107 - head/sys/arm64/rockchip

Emmanuel Vadot manu at FreeBSD.org
Thu Jun 14 05:41:17 UTC 2018


Author: manu
Date: Thu Jun 14 05:41:16 2018
New Revision: 335107
URL: https://svnweb.freebsd.org/changeset/base/335107

Log:
  rk_pinctrl: Only add gpio subnode
  
  This is the only node we are interested in so do not waste time to test
  creating device that will be either unused or fail as most of the nodes
  don't have a compatible string.

Modified:
  head/sys/arm64/rockchip/rk_pinctrl.c

Modified: head/sys/arm64/rockchip/rk_pinctrl.c
==============================================================================
--- head/sys/arm64/rockchip/rk_pinctrl.c	Thu Jun 14 03:27:42 2018	(r335106)
+++ head/sys/arm64/rockchip/rk_pinctrl.c	Thu Jun 14 05:41:16 2018	(r335107)
@@ -438,6 +438,8 @@ rk_pinctrl_attach(device_t dev)
 
 	/* Attach child devices */
 	for (node = OF_child(node); node > 0; node = OF_peer(node)) {
+		if (!ofw_bus_node_is_compatible(node, "rockchip,gpio-bank"))
+			continue;
 		cdev = simplebus_add_device(dev, node, 0, NULL, -1, NULL);
 		if (cdev != NULL)
 			device_probe_and_attach(cdev);


More information about the svn-src-all mailing list