Browse Source

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 <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Tested-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Tested-on: Apalis T30 2GB on Apalis Evaluation Board
Simon Glass 9 years ago
parent
commit
c752cd2a30
3 changed files with 2 additions and 1 deletions
  1. 1 0
      drivers/net/e1000.c
  2. 0 1
      drivers/net/e1000.h
  3. 1 0
      drivers/net/e1000_spi.c

+ 1 - 0
drivers/net/e1000.c

@@ -29,6 +29,7 @@ tested on both gig copper and gig fiber boards
  *  Copyright 2011 Freescale Semiconductor, Inc.
  */
 
+#include <common.h>
 #include "e1000.h"
 
 #define TOUT_LOOP   100000

+ 0 - 1
drivers/net/e1000.h

@@ -19,7 +19,6 @@
 #ifndef _E1000_HW_H_
 #define _E1000_HW_H_
 
-#include <common.h>
 #include <linux/list.h>
 #include <malloc.h>
 #include <net.h>

+ 1 - 0
drivers/net/e1000_spi.c

@@ -1,3 +1,4 @@
+#include <common.h>
 #include "e1000.h"
 #include <linux/compiler.h>