Author: jhibbits
Date: Sat Oct  1 01:10:51 2016
New Revision: 306545
URL: https://svnweb.freebsd.org/changeset/base/306545

Log:
  Revert r306473.
  
  Some objections were noted, and it was purely a cosmetic change anyway.

Modified:
  head/sys/dev/fdt/simplebus.c

Modified: head/sys/dev/fdt/simplebus.c
==============================================================================
--- head/sys/dev/fdt/simplebus.c        Sat Oct  1 00:14:01 2016        
(r306544)
+++ head/sys/dev/fdt/simplebus.c        Sat Oct  1 01:10:51 2016        
(r306545)
@@ -265,15 +265,6 @@ simplebus_add_device(device_t dev, phand
 
        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",
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to