diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2018-05-04 22:09:07 +0200 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2018-05-08 03:03:59 +0000 |
commit | f65f297eff400fec8b95ebdf807bfaed69863086 (patch) | |
tree | e444d333423ba03ced6061e417a19fc59c4705cd /src/mainboard/kontron/ktqm77/mainboard.c | |
parent | 070b2d97e537e3eca356559d6938dc0fc502cbb3 (diff) | |
download | coreboot-f65f297eff400fec8b95ebdf807bfaed69863086.tar.xz |
mb/kontron: Get rid of device_t
Use of device_t has been abandoned in ramstage.
Change-Id: Iac341f592acd777fe9ba22cfbca19d4cbdb4916e
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/26103
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Diffstat (limited to 'src/mainboard/kontron/ktqm77/mainboard.c')
-rw-r--r-- | src/mainboard/kontron/ktqm77/mainboard.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mainboard/kontron/ktqm77/mainboard.c b/src/mainboard/kontron/ktqm77/mainboard.c index 5a697f05d2..3a3729038d 100644 --- a/src/mainboard/kontron/ktqm77/mainboard.c +++ b/src/mainboard/kontron/ktqm77/mainboard.c @@ -162,7 +162,7 @@ static int int15_handler(void) /* mainboard_enable is executed as first thing after */ /* enumerate_buses(). */ -static void mainboard_enable(device_t dev) +static void mainboard_enable(struct device *dev) { #if IS_ENABLED(CONFIG_PCI_OPTION_ROM_RUN_YABEL) || \ IS_ENABLED(CONFIG_PCI_OPTION_ROM_RUN_REALMODE) @@ -172,7 +172,7 @@ static void mainboard_enable(device_t dev) unsigned disable = 0; if ((get_option(&disable, "ethernet1") == CB_SUCCESS) && disable) { - device_t nic = dev_find_slot(0, PCI_DEVFN(0x1c, 2)); + struct device *nic = dev_find_slot(0, PCI_DEVFN(0x1c, 2)); if (nic) { printk(BIOS_DEBUG, "DISABLE FIRST NIC!\n"); nic->enabled = 0; @@ -180,7 +180,7 @@ static void mainboard_enable(device_t dev) } disable = 0; if ((get_option(&disable, "ethernet2") == CB_SUCCESS) && disable) { - device_t nic = dev_find_slot(0, PCI_DEVFN(0x1c, 3)); + struct device *nic = dev_find_slot(0, PCI_DEVFN(0x1c, 3)); if (nic) { printk(BIOS_DEBUG, "DISABLE SECOND NIC!\n"); nic->enabled = 0; |