From e348066bd867160ab1a3fdcd01129d978e719470 Mon Sep 17 00:00:00 2001 From: Elyes HAOUAS Date: Sun, 6 May 2018 20:32:23 +0200 Subject: src/device: Get rid of device_t Use of device_t has been abandoned in ramstage. The function prototype for "struct device *add_cpu_device" is already correct and doesn't need to be fixed. Change-Id: I7bd8b93922f113bdaf7ba460acf6a7d62c4df013 Signed-off-by: Elyes HAOUAS Reviewed-on: https://review.coreboot.org/26067 Reviewed-by: Patrick Georgi Tested-by: build bot (Jenkins) --- src/device/device_util.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/device/device_util.c') diff --git a/src/device/device_util.c b/src/device/device_util.c index 3f65b67bc2d1..c4f5873f5b4c 100644 --- a/src/device/device_util.c +++ b/src/device/device_util.c @@ -138,8 +138,8 @@ struct device *dev_find_lapic(unsigned apic_id) * @param path_type The Device Path Type. * @return Pointer to the device structure (if found), 0 otherwise. */ -struct device *dev_find_path(device_t prev_match, - enum device_path_type path_type) +struct device *dev_find_path(struct device *prev_match, + enum device_path_type path_type) { struct device *dev; struct device *result = NULL; @@ -857,7 +857,8 @@ static void resource_tree(const struct device *root, int debug_level, int depth) } } -void print_resource_tree(const struct device *root, int debug_level, const char *msg) +void print_resource_tree(const struct device *root, int debug_level, + const char *msg) { /* Bail if root is null. */ if (!root) { @@ -957,7 +958,8 @@ void show_all_devs_resources(int debug_level, const char* msg) } void fixed_mem_resource(struct device *dev, unsigned long index, - unsigned long basek, unsigned long sizek, unsigned long type) + unsigned long basek, unsigned long sizek, + unsigned long type) { struct resource *resource; -- cgit v1.2.3