diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2019-06-23 07:01:22 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-10-28 11:57:01 +0000 |
commit | 400f9ca2613297b3034d96286eeeb009a1eb2ac0 (patch) | |
tree | 1af487da965801d4810ff65c67b3d7ae206e9aa3 /src/southbridge/amd/sb700 | |
parent | 34715df801dd8bee119c6062c3a9d5acd835e2e1 (diff) |
src/southbridge: Use 'include <stdlib.h>' when appropriate
Also, including <types.h>, is supposed to provide stdint and stddef.
Change-Id: I7e1a3483aae0e3f0a7bc2eb2c1862ae7a325fd9c
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/33683
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/southbridge/amd/sb700')
-rw-r--r-- | src/southbridge/amd/sb700/sm.c | 2 | ||||
-rw-r--r-- | src/southbridge/amd/sb700/spi.c | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/southbridge/amd/sb700/sm.c b/src/southbridge/amd/sb700/sm.c index 66316828ba..535e5e4135 100644 --- a/src/southbridge/amd/sb700/sm.c +++ b/src/southbridge/amd/sb700/sm.c @@ -24,7 +24,7 @@ #include <arch/io.h> #include <cpu/x86/lapic.h> #include <arch/ioapic.h> -#include <stdlib.h> + #include "sb700.h" #include "smbus.h" diff --git a/src/southbridge/amd/sb700/spi.c b/src/southbridge/amd/sb700/spi.c index ee031e927f..f772f755ba 100644 --- a/src/southbridge/amd/sb700/spi.c +++ b/src/southbridge/amd/sb700/spi.c @@ -14,8 +14,6 @@ * GNU General Public License for more details. */ -#include <stdint.h> -#include <stdlib.h> #include <device/mmio.h> #include <console/console.h> #include <spi-generic.h> @@ -23,6 +21,7 @@ #include <device/device.h> #include <device/pci.h> #include <device/pci_ops.h> +#include <types.h> #define AMD_SB_SPI_TX_LEN 8 |