summaryrefslogtreecommitdiff
path: root/src/southbridge/amd/sb700/sb700.c
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2018-05-19 12:37:54 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2018-05-21 20:00:52 +0000
commitf29a6898ec10459e49c9380b9b342e6ee633a6ce (patch)
tree9773f705f0fdcd6885ea19ec7eaf5078a82047d6 /src/southbridge/amd/sb700/sb700.c
parent7f55810cf0e4d415cc71d7c58094040e49e14a37 (diff)
sb/amd/sb700: Get rid of device_t
Use of device_t has been abandoned in ramstage. Change-Id: I53acc7dd4ddf2787fc1e59d604cadc4f3b4cb49c Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/26406 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Diffstat (limited to 'src/southbridge/amd/sb700/sb700.c')
-rw-r--r--src/southbridge/amd/sb700/sb700.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/southbridge/amd/sb700/sb700.c b/src/southbridge/amd/sb700/sb700.c
index 10687217fa..1d63f5c642 100644
--- a/src/southbridge/amd/sb700/sb700.c
+++ b/src/southbridge/amd/sb700/sb700.c
@@ -23,9 +23,9 @@
#include <device/pci_ops.h>
#include "sb700.h"
-static device_t find_sm_dev(device_t dev, u32 devfn)
+static struct device *find_sm_dev(struct device *dev, u32 devfn)
{
- device_t sm_dev;
+ struct device *sm_dev;
sm_dev = dev_find_slot(dev->bus->secondary, devfn);
if (!sm_dev)
@@ -45,7 +45,7 @@ static device_t find_sm_dev(device_t dev, u32 devfn)
return sm_dev;
}
-void set_sm_enable_bits(device_t sm_dev, u32 reg_pos, u32 mask, u32 val)
+void set_sm_enable_bits(struct device *sm_dev, u32 reg_pos, u32 mask, u32 val)
{
u32 reg_old, reg;
reg = reg_old = pci_read_config32(sm_dev, reg_pos);
@@ -88,7 +88,7 @@ u8 pm2_ioread(u8 reg)
return pmio_read_index(PM2_INDEX, reg);
}
-static void set_pmio_enable_bits(device_t sm_dev, u32 reg_pos,
+static void set_pmio_enable_bits(struct device *sm_dev, u32 reg_pos,
u32 mask, u32 val)
{
u8 reg_old, reg;
@@ -100,10 +100,10 @@ static void set_pmio_enable_bits(device_t sm_dev, u32 reg_pos,
}
}
-void sb7xx_51xx_enable(device_t dev)
+void sb7xx_51xx_enable(struct device *dev)
{
- device_t sm_dev = 0;
- device_t bus_dev = 0;
+ struct device *sm_dev = NULL;
+ struct device *bus_dev = NULL;
int index = -1;
u32 deviceid;
u32 vendorid;