sb/amd/common: Get rid of device_t

Use of device_t has been abandoned in ramstage.

Change-Id: Ie16a1c131ec41eeccc0bf5235b3fc2341095d4a8
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/26413
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
This commit is contained in:
Elyes HAOUAS 2018-05-19 15:03:17 +02:00 committed by Kyösti Mälkki
parent 0d7c7a84e7
commit ee424e5941
1 changed files with 2 additions and 2 deletions

View File

@ -94,8 +94,8 @@ void write_pci_int_table (void)
*/ */
void write_pci_cfg_irqs(void) void write_pci_cfg_irqs(void)
{ {
device_t dev = NULL; /* Our current device to route IRQs to */ struct device *dev = NULL; /* Our current device to route IRQs to */
device_t target_dev = NULL; /* The bridge that a device may be connected to */ struct device *target_dev = NULL; /* The bridge that a device may be connected to */
u16 int_pin = 0; /* Value of the INT_PIN register 0x3D */ u16 int_pin = 0; /* Value of the INT_PIN register 0x3D */
u16 target_pin = 0; /* Pin we will search our tables for */ u16 target_pin = 0; /* Pin we will search our tables for */
u16 int_line = 0; /* IRQ number read from PCI_INTR table and programmed to INT_LINE reg 0x3C */ u16 int_line = 0; /* IRQ number read from PCI_INTR table and programmed to INT_LINE reg 0x3C */