aboutsummaryrefslogtreecommitdiff
path: root/src/southbridge/amd
diff options
context:
space:
mode:
Diffstat (limited to 'src/southbridge/amd')
-rw-r--r--src/southbridge/amd/amd8111/amd8111.c4
-rw-r--r--src/southbridge/amd/sb700/sb700.c2
-rw-r--r--src/southbridge/amd/sb800/sb800.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/southbridge/amd/amd8111/amd8111.c b/src/southbridge/amd/amd8111/amd8111.c
index 041a2994e1..fae22ada3b 100644
--- a/src/southbridge/amd/amd8111/amd8111.c
+++ b/src/southbridge/amd/amd8111/amd8111.c
@@ -30,7 +30,7 @@ void amd8111_enable(struct device *dev)
{
unsigned devfn;
devfn = bus_dev->path.pci.devfn + (1 << 3);
- lpc_dev = dev_find_slot(bus_dev->bus->secondary, devfn);
+ lpc_dev = pcidev_path_behind(bus_dev->bus, devfn);
index = ((dev->path.pci.devfn & ~7) >> 3) + 8;
if (dev->path.pci.devfn == 2) { /* EHCI */
index = 16;
@@ -38,7 +38,7 @@ void amd8111_enable(struct device *dev)
} else {
unsigned devfn;
devfn = (dev->path.pci.devfn) & ~7;
- lpc_dev = dev_find_slot(dev->bus->secondary, devfn);
+ lpc_dev = pcidev_path_behind(dev->bus, devfn);
index = dev->path.pci.devfn & 7;
}
if ((!lpc_dev) || (index >= 17)) {
diff --git a/src/southbridge/amd/sb700/sb700.c b/src/southbridge/amd/sb700/sb700.c
index 1d63f5c642..b7ff58d90c 100644
--- a/src/southbridge/amd/sb700/sb700.c
+++ b/src/southbridge/amd/sb700/sb700.c
@@ -27,7 +27,7 @@ static struct device *find_sm_dev(struct device *dev, u32 devfn)
{
struct device *sm_dev;
- sm_dev = dev_find_slot(dev->bus->secondary, devfn);
+ sm_dev = pcidev_path_behind(dev->bus, devfn);
if (!sm_dev)
return sm_dev;
diff --git a/src/southbridge/amd/sb800/sb800.c b/src/southbridge/amd/sb800/sb800.c
index 8bf7937a14..bd4dc68ca2 100644
--- a/src/southbridge/amd/sb800/sb800.c
+++ b/src/southbridge/amd/sb800/sb800.c
@@ -28,7 +28,7 @@ static struct device *find_sm_dev(struct device *dev, u32 devfn)
{
struct device *sm_dev;
- sm_dev = dev_find_slot(dev->bus->secondary, devfn);
+ sm_dev = pcidev_path_behind(dev->bus, devfn);
if (!sm_dev)
return sm_dev;