summaryrefslogtreecommitdiff
path: root/src/soc/nvidia/tegra124
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2019-06-23 07:03:59 +0200
committerPatrick Georgi <pgeorgi@google.com>2019-07-25 16:06:32 +0000
commit308185546b1f0a0083db80da7ebef7b254fa2129 (patch)
tree1d5ce5424b362c19542e43e899ba5faa2ad58593 /src/soc/nvidia/tegra124
parent0f33d8c29aadce21b02d0376547441b6f38dcede (diff)
soc/nvidia: Use 'include <stdlib.h>' when appropriate
Also including <types.h>, is supposed to provide stdint and stddef. Change-Id: I812d468c68b31917da5d406e2fb3b84bc6331b69 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/33687 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'src/soc/nvidia/tegra124')
-rw-r--r--src/soc/nvidia/tegra124/dp.c2
-rw-r--r--src/soc/nvidia/tegra124/spi.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/soc/nvidia/tegra124/dp.c b/src/soc/nvidia/tegra124/dp.c
index b9fa0eae8c..d8a4f22272 100644
--- a/src/soc/nvidia/tegra124/dp.c
+++ b/src/soc/nvidia/tegra124/dp.c
@@ -27,8 +27,8 @@
#include <soc/nvidia/tegra/dc.h>
#include <soc/nvidia/tegra/displayport.h>
#include <soc/sor.h>
-#include <stdlib.h>
#include <string.h>
+#include <types.h>
#include "chip.h"
diff --git a/src/soc/nvidia/tegra124/spi.c b/src/soc/nvidia/tegra124/spi.c
index 45159c2fee..4bd0ab7d1a 100644
--- a/src/soc/nvidia/tegra124/spi.c
+++ b/src/soc/nvidia/tegra124/spi.c
@@ -26,10 +26,9 @@
#include <soc/spi.h>
#include <spi-generic.h>
#include <spi_flash.h>
-#include <stdint.h>
-#include <stdlib.h>
#include <symbols.h>
#include <timer.h>
+#include <types.h>
#if defined(CONFIG_DEBUG_SPI) && CONFIG_DEBUG_SPI
# define DEBUG_SPI(x,...) printk(BIOS_DEBUG, "TEGRA_SPI: " x)