UPSTREAM: mainboard/technexion/tim5690: transition away from device_t
Replace the use of the old device_t definition inside
mainboard/technexion/tim5690.
BUG=none
BRANCH=none
TEST=none
Change-Id: I71904345f76418c71cd37d29f5078e142c1b8678
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: a34e70e002
Original-Change-Id: I661daa5ab34c70db8ed783e5bf1114877f13b548
Original-Signed-off-by: Antonello Dettori <dev@dettori.io>
Original-Reviewed-on: https://review.coreboot.org/17307
Original-Tested-by: build bot (Jenkins)
Original-Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-on: https://chromium-review.googlesource.com/459658
This commit is contained in:
parent
ba8436b687
commit
0d0cb15db7
1 changed files with 5 additions and 4 deletions
|
|
@ -30,13 +30,13 @@
|
|||
#include "tn_post_code.h"
|
||||
|
||||
|
||||
#ifdef __PRE_RAM__
|
||||
#ifdef __SIMPLE_DEVICE__
|
||||
|
||||
// TechNexion's Post Code Initially.
|
||||
void technexion_post_code_init(void)
|
||||
{
|
||||
uint8_t reg8_data;
|
||||
device_t dev = 0;
|
||||
pci_devfn_t dev = 0;
|
||||
|
||||
// SMBus Module and ACPI Block (Device 20, Function 0)
|
||||
dev = pci_locate_device(PCI_ID(PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_SB600_SM), 0);
|
||||
|
|
@ -129,12 +129,13 @@ void technexion_post_code_init(void)
|
|||
void technexion_post_code(uint8_t udata8)
|
||||
{
|
||||
uint8_t u8_data;
|
||||
device_t dev = 0;
|
||||
|
||||
// SMBus Module and ACPI Block (Device 20, Function 0)
|
||||
#ifdef __PRE_RAM__
|
||||
#ifdef __SIMPLE_DEVICE__
|
||||
pci_devfn_t dev = 0;
|
||||
dev = pci_locate_device(PCI_ID(PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_SB600_SM), 0);
|
||||
#else
|
||||
device_t dev = 0;
|
||||
dev = dev_find_device(PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_SB600_SM, 0);
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue