amdfam10 boards: Fix regression on dev_find_slot() removal
commitdb866ba2009f6376dc8fd32e506a614439ba618c
authorKyösti Mälkki <kyosti.malkki@gmail.com>
Sun, 6 Jan 2019 15:40:36 +0000 (6 17:40 +0200)
committerKyösti Mälkki <kyosti.malkki@gmail.com>
Tue, 8 Jan 2019 02:51:47 +0000 (8 02:51 +0000)
tree1df01e74811668c31e8c2cf51844211b9043dcfe
parenta6ce5d3faa5de44a8d2ac183c4478f8da14ddbaf
amdfam10 boards: Fix regression on dev_find_slot() removal

For these platforms, the first PCI node on devicetree
is not the root of PCI bus hierarchy, and the topology
(bus->children and dev->sibling links) are getting
manipulated during HyperTransport enumeration.

This workaround reverts back to old dev_find_slot() with
its bad semantics.

Change-Id: I19745c3070c12e562ffab2f0243c9d91dd051c72
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/30695
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
src/device/device_const.c