summaryrefslogtreecommitdiff
path: root/src/device/device_util.c
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2018-05-06 20:32:23 +0200
committerPatrick Georgi <pgeorgi@google.com>2018-05-22 07:24:23 +0000
commite348066bd867160ab1a3fdcd01129d978e719470 (patch)
treedfbb2291fa9281132137d52afe5a1e9d50417842 /src/device/device_util.c
parent996670377666eac27af4c4562d48677305e4e937 (diff)
downloadcoreboot-e348066bd867160ab1a3fdcd01129d978e719470.tar.xz
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 <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/26067 Reviewed-by: Patrick Georgi <pgeorgi@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/device/device_util.c')
-rw-r--r--src/device/device_util.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/device/device_util.c b/src/device/device_util.c
index 3f65b67bc2..c4f5873f5b 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;