summaryrefslogtreecommitdiff
path: root/src/southbridge/amd/sb700/usb.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/usb.c
parent7f55810cf0e4d415cc71d7c58094040e49e14a37 (diff)
downloadcoreboot-f29a6898ec10459e49c9380b9b342e6ee633a6ce.tar.xz
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/usb.c')
-rw-r--r--src/southbridge/amd/sb700/usb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/southbridge/amd/sb700/usb.c b/src/southbridge/amd/sb700/usb.c
index 627600823e..12b9dd673a 100644
--- a/src/southbridge/amd/sb700/usb.c
+++ b/src/southbridge/amd/sb700/usb.c
@@ -34,7 +34,7 @@ static void usb_init(struct device *dev)
u32 dword;
/* 6.1 Enable OHCI0-4 and EHCI Controllers */
- device_t sm_dev;
+ struct device *sm_dev;
sm_dev = dev_find_slot(0, PCI_DEVFN(0x14, 0));
byte = pci_read_config8(sm_dev, 0x68);
byte |= 0xFF;
@@ -79,7 +79,7 @@ static void usb_init2(struct device *dev)
{
uint32_t dword;
void *usb2_bar0;
- device_t sm_dev;
+ struct device *sm_dev;
uint8_t rev;
uint8_t ehci_async_data_cache;
uint8_t nvram;