soc/imgtec/pistachio: Get rid of device_t

Use of device_t has been abandoned in ramstage.

Change-Id: Ia36b4ef7d66c50a044bc51f452ac8b7c7ff14323
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/26540
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-25 12:16:45 +02:00 committed by Patrick Georgi
parent f9ae706521
commit e7f4beca19
1 changed files with 3 additions and 3 deletions

View File

@ -17,13 +17,13 @@
#include <device/device.h> #include <device/device.h>
#include <symbols.h> #include <symbols.h>
static void soc_read_resources(device_t dev) static void soc_read_resources(struct device *dev)
{ {
ram_resource(dev, 0, (uintptr_t)_dram / KiB, ram_resource(dev, 0, (uintptr_t)_dram / KiB,
(CONFIG_DRAM_SIZE_MB * MiB) / KiB); (CONFIG_DRAM_SIZE_MB * MiB) / KiB);
} }
static void soc_init(device_t dev) static void soc_init(struct device *dev)
{ {
printk(BIOS_INFO, "CPU: Imgtec Pistachio\n"); printk(BIOS_INFO, "CPU: Imgtec Pistachio\n");
} }
@ -33,7 +33,7 @@ static struct device_operations soc_ops = {
.init = soc_init, .init = soc_init,
}; };
static void enable_soc_dev(device_t dev) static void enable_soc_dev(struct device *dev)
{ {
dev->ops = &soc_ops; dev->ops = &soc_ops;
} }