aboutsummaryrefslogtreecommitdiff
path: root/src/southbridge/amd/cimx
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2019-06-23 07:01:22 +0200
committerPatrick Georgi <pgeorgi@google.com>2019-10-28 11:57:01 +0000
commit400f9ca2613297b3034d96286eeeb009a1eb2ac0 (patch)
tree1af487da965801d4810ff65c67b3d7ae206e9aa3 /src/southbridge/amd/cimx
parent34715df801dd8bee119c6062c3a9d5acd835e2e1 (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/cimx')
-rw-r--r--src/southbridge/amd/cimx/sb800/smbus_spd.c2
-rw-r--r--src/southbridge/amd/cimx/sb800/spi.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/southbridge/amd/cimx/sb800/smbus_spd.c b/src/southbridge/amd/cimx/sb800/smbus_spd.c
index a6881bbe1e..a574072388 100644
--- a/src/southbridge/amd/cimx/sb800/smbus_spd.c
+++ b/src/southbridge/amd/cimx/sb800/smbus_spd.c
@@ -15,7 +15,7 @@
#include <device/pci_def.h>
#include <device/device.h>
-#include <stdlib.h>
+#include <stddef.h>
#include <OEM.h> /* SMBUS0_BASE_ADDRESS */
/* warning: Porting.h includes an open #pragma pack(1) */
diff --git a/src/southbridge/amd/cimx/sb800/spi.c b/src/southbridge/amd/cimx/sb800/spi.c
index ffda0a8ea4..fcb4fa1111 100644
--- a/src/southbridge/amd/cimx/sb800/spi.c
+++ b/src/southbridge/amd/cimx/sb800/spi.c
@@ -12,8 +12,7 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
-#include <stdint.h>
-#include <stdlib.h>
+
#include <device/mmio.h>
#include <console/console.h>
#include <spi_flash.h>
@@ -21,6 +20,7 @@
#include <device/device.h>
#include <device/pci.h>
#include <device/pci_ops.h>
+#include <types.h>
#include "SBPLATFORM.h"
#include <vendorcode/amd/cimx/sb800/ECfan.h>