aboutsummaryrefslogtreecommitdiff
path: root/src/soc/rockchip/rk3399/soc.c
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2018-05-25 09:52:45 +0200
committerPatrick Georgi <pgeorgi@google.com>2018-06-04 09:17:18 +0000
commitf3ca88b7ed9e3f60733cbbe9420928e088be2c28 (patch)
tree2176afee14d945cc0a3970beba964879ee2c9070 /src/soc/rockchip/rk3399/soc.c
parent610d46506eb21a60f17d8c64bb6f632afd9d8ef8 (diff)
soc/rockchip: Get rid of device_t
Use of device_t has been abandoned in ramstage. Change-Id: Idf47ea3b29c3fab7256d7a6722c7978594001d8d Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/26535 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/soc/rockchip/rk3399/soc.c')
-rw-r--r--src/soc/rockchip/rk3399/soc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/soc/rockchip/rk3399/soc.c b/src/soc/rockchip/rk3399/soc.c
index 37de652983..30f51d0ef5 100644
--- a/src/soc/rockchip/rk3399/soc.c
+++ b/src/soc/rockchip/rk3399/soc.c
@@ -27,12 +27,12 @@
#include <symbols.h>
#include <arm-trusted-firmware/plat/rockchip/rk3399/include/shared/bl31_param.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, sdram_size_mb() * KiB);
}
-static void soc_init(device_t dev)
+static void soc_init(struct device *dev)
{
/*
* Reserve the whole TZRAM area because it will be marked as secure-only
@@ -54,7 +54,7 @@ static struct device_operations soc_ops = {
.init = soc_init,
};
-static void enable_soc_dev(device_t dev)
+static void enable_soc_dev(struct device *dev)
{
dev->ops = &soc_ops;
}