diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2018-05-25 10:03:57 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-05-28 16:07:27 +0000 |
commit | 3fcb2185658a17169fd7df007c236ce084aad74f (patch) | |
tree | 7b23d401656807a3dd617474a858c5d45b3b877a /src/soc/nvidia/tegra124 | |
parent | 90f515a14b531ba6740419acedb3eb65d6efa13f (diff) | |
download | coreboot-3fcb2185658a17169fd7df007c236ce084aad74f.tar.xz |
soc/nvidia: Get rid of device_t
Use of device_t has been abandoned in ramstage.
Change-Id: I065ed3a0deab2f59e510717f5d52beb2a62e900d
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/26537
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Diffstat (limited to 'src/soc/nvidia/tegra124')
-rw-r--r-- | src/soc/nvidia/tegra124/display.c | 2 | ||||
-rw-r--r-- | src/soc/nvidia/tegra124/soc.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/soc/nvidia/tegra124/display.c b/src/soc/nvidia/tegra124/display.c index dce6ad257a..8d5a264ff7 100644 --- a/src/soc/nvidia/tegra124/display.c +++ b/src/soc/nvidia/tegra124/display.c @@ -212,7 +212,7 @@ uint32_t fb_base_mb(void) /* this is really aimed at the lcd panel. That said, there are two display * devices on this part and we may someday want to extend it for other boards. */ -void display_startup(device_t dev) +void display_startup(struct device *dev) { struct soc_nvidia_tegra124_config *config = dev->chip_info; struct display_controller *disp_ctrl = (void *)config->display_controller; diff --git a/src/soc/nvidia/tegra124/soc.c b/src/soc/nvidia/tegra124/soc.c index faf1ddb414..e44ea8d32a 100644 --- a/src/soc/nvidia/tegra124/soc.c +++ b/src/soc/nvidia/tegra124/soc.c @@ -30,7 +30,7 @@ * Will break if we get 2. Sigh. * We assume it's all multiples of MiB for MMUs sake. */ -static void soc_enable(device_t dev) +static void soc_enable(struct device *dev) { u32 lcdbase = fb_base_mb(); unsigned long fb_size = FB_SIZE_MB; @@ -47,7 +47,7 @@ static void soc_enable(device_t dev) (sdram_end_mb - sdram_max_addressable_mb())*KiB); } -static void soc_init(device_t dev) +static void soc_init(struct device *dev) { if (display_init_required()) display_startup(dev); @@ -64,7 +64,7 @@ static struct device_operations soc_ops = { .scan_bus = 0, }; -static void enable_tegra124_dev(device_t dev) +static void enable_tegra124_dev(struct device *dev) { dev->ops = &soc_ops; } |