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/cpu_device.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/device/cpu_device.c') diff --git a/src/device/cpu_device.c b/src/device/cpu_device.c index ccbe6ec7da..b07b555b52 100644 --- a/src/device/cpu_device.c +++ b/src/device/cpu_device.c @@ -17,10 +17,11 @@ #include #include -device_t add_cpu_device(struct bus *cpu_bus, unsigned apic_id, int enabled) +struct device *add_cpu_device(struct bus *cpu_bus, unsigned apic_id, + int enabled) { struct device_path cpu_path; - device_t cpu; + struct device *cpu; /* Build the CPU device path */ cpu_path.type = DEVICE_PATH_APIC; @@ -41,7 +42,8 @@ device_t add_cpu_device(struct bus *cpu_bus, unsigned apic_id, int enabled) return cpu; } -void set_cpu_topology(device_t cpu, unsigned node, unsigned package, unsigned core, unsigned thread) +void set_cpu_topology(struct device *cpu, unsigned node, unsigned package, + unsigned core, unsigned thread) { cpu->path.apic.node_id = node; cpu->path.apic.package_id = package; -- cgit v1.2.3