summaryrefslogtreecommitdiff
path: root/src/drivers/spi/spi_flash.c
diff options
context:
space:
mode:
authorEdward O'Callaghan <eocallaghan@alterapraxis.com>2014-06-26 15:02:40 +1000
committerEdward O'Callaghan <eocallaghan@alterapraxis.com>2014-07-17 20:21:30 +0200
commitc4561e24bbdc418e49aa6dbb2689c78a51061ce0 (patch)
tree9ae83756f5f339c106a17ac8e3444ad8b2f99654 /src/drivers/spi/spi_flash.c
parent0017c6ee87cafc65b8f0679cb2d4862c281a3043 (diff)
downloadcoreboot-c4561e24bbdc418e49aa6dbb2689c78a51061ce0.tar.xz
drivers/spi: Sanitize headers from preprocessor abuse
Continuing on from the rational given in: a173a62 Remove guarding #includes by CONFIG_FOO combinations Change-Id: I35c636ee7c0b106323b3e4b90629f7262750f8bd Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-on: http://review.coreboot.org/6114 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Diffstat (limited to 'src/drivers/spi/spi_flash.c')
-rw-r--r--src/drivers/spi/spi_flash.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/drivers/spi/spi_flash.c b/src/drivers/spi/spi_flash.c
index f3a5906a00..626d5069b0 100644
--- a/src/drivers/spi/spi_flash.c
+++ b/src/drivers/spi/spi_flash.c
@@ -7,14 +7,13 @@
* Licensed under the GPL-2 or later.
*/
+#include <cpu/x86/smm.h>
+#include <delay.h>
#include <stdlib.h>
#include <string.h>
#include <spi-generic.h>
#include <spi_flash.h>
-#include <delay.h>
-#ifdef __SMM__
-#include <cpu/x86/smm.h>
-#endif
+
#include "spi_flash_internal.h"
#include <timer.h>