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>
This commit is contained in:
parent
070b2d97e5
commit
f65f297eff
|
@ -151,7 +151,7 @@ static void hwm_setup(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)
|
||||
{
|
||||
install_intel_vga_int15_handler(GMA_INT15_ACTIVE_LFP_INT_LVDS, GMA_INT15_PANEL_FIT_DEFAULT, GMA_INT15_BOOT_DISPLAY_DEFAULT, 3);
|
||||
hwm_setup();
|
||||
|
|
|
@ -57,7 +57,7 @@ static u32 get_bus_conf_done = 0;
|
|||
void get_bus_conf(void)
|
||||
{
|
||||
u32 apicid_base;
|
||||
device_t dev;
|
||||
struct device *dev;
|
||||
int i;
|
||||
|
||||
if (get_bus_conf_done == 1)
|
||||
|
|
|
@ -115,7 +115,7 @@ static void set_thermal_config(void)
|
|||
{
|
||||
u8 byte;
|
||||
u16 word;
|
||||
device_t sm_dev;
|
||||
struct device *sm_dev;
|
||||
|
||||
/* set ADT 7461 */
|
||||
ADT7461_write_byte(0x0B, 0x50); /* Local Temperature Hight limit */
|
||||
|
@ -176,7 +176,7 @@ static void set_thermal_config(void)
|
|||
* enable the dedicated function in dbm690t board.
|
||||
* This function called early than rs690_enable.
|
||||
*************************************************/
|
||||
static void mainboard_enable(device_t dev)
|
||||
static void mainboard_enable(struct device *dev)
|
||||
{
|
||||
printk(BIOS_INFO, "Mainboard KT690 Enable. dev=0x%p\n", dev);
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ static void *smp_write_config_table(void *v)
|
|||
|
||||
/* I/O APICs: APIC ID Version State Address */
|
||||
{
|
||||
device_t dev;
|
||||
struct device *dev;
|
||||
u32 dword;
|
||||
u8 byte;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue