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>
This commit is contained in:
Elyes HAOUAS
2018-05-06 20:32:23 +02:00
committed by Patrick Georgi
parent 9966703776
commit e348066bd8
4 changed files with 24 additions and 20 deletions

View File

@@ -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;