diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2018-05-05 08:43:19 +0200 |
---|---|---|
committer | Patrick Rudolph <siro@das-labor.org> | 2018-05-08 11:32:07 +0000 |
commit | 29c657f4c6c24899579dfda4de0ca553fde08c51 (patch) | |
tree | ae71750e46dca7663b7d87665713b16ed5516f8c /src/mainboard/jetway/pa78vm5/mainboard.c | |
parent | 20c78048a7a637d0de4505bdcbc00a994eee83fc (diff) | |
download | coreboot-29c657f4c6c24899579dfda4de0ca553fde08c51.tar.xz |
mb/jetway: Get rid of device_t
Use of device_t has been abandoned in ramstage.
Change-Id: I574d9e46ebe6993f356c3617f2e5ff21b5ef55a5
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/26111
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Diffstat (limited to 'src/mainboard/jetway/pa78vm5/mainboard.c')
-rw-r--r-- | src/mainboard/jetway/pa78vm5/mainboard.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mainboard/jetway/pa78vm5/mainboard.c b/src/mainboard/jetway/pa78vm5/mainboard.c index fe22283a7c..ab305e3378 100644 --- a/src/mainboard/jetway/pa78vm5/mainboard.c +++ b/src/mainboard/jetway/pa78vm5/mainboard.c @@ -35,7 +35,7 @@ u8 is_dev3_present(void); void set_pcie_dereset() { u16 word; - device_t sm_dev; + struct device *sm_dev; /* GPIO 6 reset PCIe slot, GPIO 4 reset GFX PCIe */ sm_dev = dev_find_slot(0, PCI_DEVFN(0x14, 0)); @@ -48,7 +48,7 @@ void set_pcie_dereset() void set_pcie_reset() { u16 word; - device_t sm_dev; + struct device *sm_dev; /* GPIO 6 reset PCIe slot, GPIO 4 reset GFX PCIe */ sm_dev = dev_find_slot(0, PCI_DEVFN(0x14, 0)); @@ -68,7 +68,7 @@ static void get_ide_dma66(void) { u8 byte; /*u32 sm_dev, ide_dev; */ - device_t sm_dev, ide_dev; + struct device *sm_dev, ide_dev; sm_dev = dev_find_slot(0, PCI_DEVFN(0x14, 0)); @@ -96,7 +96,7 @@ u8 is_dev3_present(void) * enable the dedicated function in this board. * This function called early than rs780_enable. *************************************************/ -static void mainboard_enable(device_t dev) +static void mainboard_enable(struct device *dev) { printk(BIOS_INFO, "Mainboard PA78VM5 Enable. dev=0x%p\n", dev); |