summaryrefslogtreecommitdiff
path: root/src/mainboard/siemens/mc_bdx1/mainboard.c
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2018-05-04 21:58:51 +0200
committerMartin Roth <martinroth@google.com>2018-05-08 14:23:27 +0000
commit47503cd688f6e5f092fccd4be9293ff84dd6ae4b (patch)
treef759631d89c1e22f7b2bc8fb3b2fec3cc95a8ab2 /src/mainboard/siemens/mc_bdx1/mainboard.c
parent66ea1654f208b398d17ce9e5ad35f3088d13b6e9 (diff)
downloadcoreboot-47503cd688f6e5f092fccd4be9293ff84dd6ae4b.tar.xz
mb/siemens: Get rid of device_t
Use of device_t has been abandoned in ramstage. Change-Id: If67ea25a9e1363dde8aefe62b92ee7a61f0458b0 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/26097 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Rudolph <siro@das-labor.org> Reviewed-by: Werner Zeh <werner.zeh@siemens.com> Reviewed-by: Mario Scheithauer <mario.scheithauer@siemens.com>
Diffstat (limited to 'src/mainboard/siemens/mc_bdx1/mainboard.c')
-rw-r--r--src/mainboard/siemens/mc_bdx1/mainboard.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mainboard/siemens/mc_bdx1/mainboard.c b/src/mainboard/siemens/mc_bdx1/mainboard.c
index 66edcb7a66..73290d5755 100644
--- a/src/mainboard/siemens/mc_bdx1/mainboard.c
+++ b/src/mainboard/siemens/mc_bdx1/mainboard.c
@@ -96,7 +96,7 @@
* mainboard_enable is executed as first thing after enumerate_buses().
* This is the earliest point to add customization.
*/
-static void mainboard_enable(device_t dev)
+static void mainboard_enable(struct device *dev)
{
}
@@ -104,7 +104,7 @@ static void mainboard_enable(device_t dev)
static void mainboard_init(void *chip_info)
{
uint8_t actl = 0;
- device_t dev = dev_find_slot(0, PCI_DEVFN(LPC_DEV, LPC_FUNC));
+ struct device *dev = dev_find_slot(0, PCI_DEVFN(LPC_DEV, LPC_FUNC));
/* Route SCI to IRQ 10 to free IRQ 9 slot. */
actl = pci_read_config8(dev, ACPI_CNTL_OFFSET);
@@ -121,7 +121,7 @@ static void mainboard_final(void *chip_info)
{
void *spi_base = NULL;
uint32_t rcba = 0;
- device_t dev = dev_find_slot(0, PCI_DEVFN(LPC_DEV, LPC_FUNC));
+ struct device *dev = dev_find_slot(0, PCI_DEVFN(LPC_DEV, LPC_FUNC));
/* Get address of SPI controller. */
rcba = (pci_read_config32(dev, 0xf0) & 0xffffc000);