From c752cd2a30517c3a8c0742d807ce5053b747baa8 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Wed, 19 Aug 2015 09:33:38 -0600 Subject: [PATCH] net: e1000: Move #include of common.h to the C files We cannot currently include any header files in the C files since common.h needs to be included first, and it is in the header file. Move it. Signed-off-by: Simon Glass Reviewed-by: Bin Meng Acked-by: Joe Hershberger Tested-by: Marcel Ziswiler Tested-on: Apalis T30 2GB on Apalis Evaluation Board --- drivers/net/e1000.c | 1 + drivers/net/e1000.h | 1 - drivers/net/e1000_spi.c | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/e1000.c b/drivers/net/e1000.c index e81641054d..187517b7d1 100644 --- a/drivers/net/e1000.c +++ b/drivers/net/e1000.c @@ -29,6 +29,7 @@ tested on both gig copper and gig fiber boards * Copyright 2011 Freescale Semiconductor, Inc. */ +#include #include "e1000.h" #define TOUT_LOOP 100000 diff --git a/drivers/net/e1000.h b/drivers/net/e1000.h index 23a81e6c2d..989f01df7a 100644 --- a/drivers/net/e1000.h +++ b/drivers/net/e1000.h @@ -19,7 +19,6 @@ #ifndef _E1000_HW_H_ #define _E1000_HW_H_ -#include #include #include #include diff --git a/drivers/net/e1000_spi.c b/drivers/net/e1000_spi.c index 93043a1ade..e7f68263a4 100644 --- a/drivers/net/e1000_spi.c +++ b/drivers/net/e1000_spi.c @@ -1,3 +1,4 @@ +#include #include "e1000.h" #include -- 2.25.1