device/root_device.c: Get rid of device_t

Use of `device_t` has been abandoned in ramstage.

Change-Id: Ia25c5097d4cfa979c18a855e656ad794c2f0260c
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/26008
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
Elyes HAOUAS 2018-05-02 21:34:56 +02:00 committed by Patrick Georgi
parent 69de055865
commit 6e019d88ee
1 changed files with 7 additions and 7 deletions

View File

@ -43,9 +43,9 @@ const char mainboard_name[] = CONFIG_MAINBOARD_VENDOR " " CONFIG_MAINBOARD_PART_
* @param bus Pointer to the device to which the static buses are attached to. * @param bus Pointer to the device to which the static buses are attached to.
*/ */
void scan_static_bus(device_t bus) void scan_static_bus(struct device *bus)
{ {
device_t child; struct device *child;
struct bus *link; struct bus *link;
for (link = bus->link_list; link; link = link->next) { for (link = bus->link_list; link; link = link->next) {
@ -63,7 +63,7 @@ void scan_static_bus(device_t bus)
} }
} }
void scan_lpc_bus(device_t bus) void scan_lpc_bus(struct device *bus)
{ {
printk(BIOS_SPEW, "%s for %s\n", __func__, dev_path(bus)); printk(BIOS_SPEW, "%s for %s\n", __func__, dev_path(bus));
@ -72,9 +72,9 @@ void scan_lpc_bus(device_t bus)
printk(BIOS_SPEW, "%s for %s done\n", __func__, dev_path(bus)); printk(BIOS_SPEW, "%s for %s done\n", __func__, dev_path(bus));
} }
void scan_generic_bus(device_t bus) void scan_generic_bus(struct device *bus)
{ {
device_t child; struct device *child;
struct bus *link; struct bus *link;
static int bus_max = 0; static int bus_max = 0;
@ -103,7 +103,7 @@ void scan_generic_bus(device_t bus)
printk(BIOS_SPEW, "%s for %s done\n", __func__, dev_path(bus)); printk(BIOS_SPEW, "%s for %s done\n", __func__, dev_path(bus));
} }
void scan_smbus(device_t bus) void scan_smbus(struct device *bus)
{ {
scan_generic_bus(bus); scan_generic_bus(bus);
} }
@ -115,7 +115,7 @@ void scan_smbus(device_t bus)
* *
* @param root The root device structure. * @param root The root device structure.
*/ */
static void root_dev_scan_bus(device_t bus) static void root_dev_scan_bus(struct device *bus)
{ {
struct bus *link; struct bus *link;