Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Jun 2018 05:41:16 +0000 (UTC)
From:      Emmanuel Vadot <manu@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r335107 - head/sys/arm64/rockchip
Message-ID:  <201806140541.w5E5fGRT032164@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806140541.w5E5fGRT032164>