Revert r306473.

Some objections were noted, and it was purely a cosmetic change anyway.
This commit is contained in:
Justin Hibbits 2016-10-01 01:10:51 +00:00
parent 273c26a3c3
commit a3ee15f9bf
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=306545

View File

@ -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",