[coreboot-gerrit] Change in coreboot[master]: mb/pcengines: Get rid of device_t
Elyes HAOUAS (Code Review)
gerrit at coreboot.org
Fri May 4 22:04:13 CEST 2018
Elyes HAOUAS has uploaded this change for review. ( https://review.coreboot.org/26100
Change subject: mb/pcengines: Get rid of device_t
......................................................................
mb/pcengines: Get rid of device_t
Use of device_t has been abandoned in ramstage.
Change-Id: I8a05bb00dc640fafa1c8e2eaac6427fdb0169f39
Signed-off-by: Elyes HAOUAS <ehaouas at noos.fr>
---
M src/mainboard/pcengines/apu1/mainboard.c
M src/mainboard/pcengines/apu2/mainboard.c
2 files changed, 5 insertions(+), 5 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/00/26100/1
diff --git a/src/mainboard/pcengines/apu1/mainboard.c b/src/mainboard/pcengines/apu1/mainboard.c
index 95989be..290a0ed 100644
--- a/src/mainboard/pcengines/apu1/mainboard.c
+++ b/src/mainboard/pcengines/apu1/mainboard.c
@@ -176,7 +176,7 @@
/**********************************************
* Enable the dedicated functions of the board.
**********************************************/
-static void mainboard_enable(device_t dev)
+static void mainboard_enable(struct device *dev)
{
printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n");
@@ -206,7 +206,7 @@
const char *smbios_mainboard_serial_number(void)
{
static char serial[10];
- device_t nic_dev;
+ struct device *nic_dev;
uintptr_t bar18;
u32 mac_addr = 0;
int i;
@@ -255,7 +255,7 @@
*/
static void usb_oc_setup(void)
{
- device_t dev = dev_find_slot(0, PCI_DEVFN(0x12, 0));
+ struct device *dev = dev_find_slot(0, PCI_DEVFN(0x12, 0));
pci_write_config32(dev, 0x58, 0x011f0);
}
diff --git a/src/mainboard/pcengines/apu2/mainboard.c b/src/mainboard/pcengines/apu2/mainboard.c
index 7b8da2e..8f2d622 100644
--- a/src/mainboard/pcengines/apu2/mainboard.c
+++ b/src/mainboard/pcengines/apu2/mainboard.c
@@ -158,7 +158,7 @@
* enable the dedicated function in mainboard.
**********************************************/
-static void mainboard_enable(device_t dev)
+static void mainboard_enable(struct device *dev)
{
printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n");
@@ -185,7 +185,7 @@
const char *smbios_mainboard_serial_number(void)
{
static char serial[10];
- device_t nic_dev;
+ struct device *nic_dev;
uintptr_t bar10;
u32 mac_addr = 0;
int i;
--
To view, visit https://review.coreboot.org/26100
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I8a05bb00dc640fafa1c8e2eaac6427fdb0169f39
Gerrit-Change-Number: 26100
Gerrit-PatchSet: 1
Gerrit-Owner: Elyes HAOUAS <ehaouas at noos.fr>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180504/11d252ed/attachment-0001.html>
More information about the coreboot-gerrit
mailing list