aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/fdt/simplebus.c
diff options
context:
space:
mode:
authorJustin Hibbits <jhibbits@FreeBSD.org>2016-10-01 01:10:51 +0000
committerJustin Hibbits <jhibbits@FreeBSD.org>2016-10-01 01:10:51 +0000
commita3ee15f9bfc565d5fa917d47a8af30b8222aad13 (patch)
tree3a639bb20f0785e7213bc649cdccc6fbe9b145e6 /sys/dev/fdt/simplebus.c
parent273c26a3c3bea87a241d6879abd4f991db180bf0 (diff)
downloadsrc-a3ee15f9bfc565d5fa917d47a8af30b8222aad13.tar.gz
src-a3ee15f9bfc565d5fa917d47a8af30b8222aad13.zip
Revert r306473.
Some objections were noted, and it was purely a cosmetic change anyway.
Notes
Notes: svn path=/head/; revision=306545
Diffstat (limited to 'sys/dev/fdt/simplebus.c')
-rw-r--r--sys/dev/fdt/simplebus.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/sys/dev/fdt/simplebus.c b/sys/dev/fdt/simplebus.c
index 6f0fe7297e25..8d43a7057bcf 100644
--- a/sys/dev/fdt/simplebus.c
+++ b/sys/dev/fdt/simplebus.c
@@ -265,15 +265,6 @@ simplebus_add_device(device_t dev, phandle_t node, u_int order,
if ((ndi = simplebus_setup_dinfo(dev, node, di)) == NULL)
return (NULL);
-
- /*
- * If the order is unspecified, use the cell-index field, if available.
- * The cell-index property is not part of any standard, but is widely
- * used in NXP/Freescale and Marvell device trees.
- */
- if (order == -1)
- OF_getencprop(node, "cell-index", &order, sizeof(order));
-
cdev = device_add_child_ordered(dev, order, name, unit);
if (cdev == NULL) {
device_printf(dev, "<%s>: device_add_child failed\n",