]> git.sur5r.net Git - u-boot/commitdiff
net: e1000: Move #include of common.h to the C files
authorSimon Glass <sjg@chromium.org>
Wed, 19 Aug 2015 15:33:38 +0000 (09:33 -0600)
committerJoe Hershberger <joe.hershberger@ni.com>
Fri, 21 Aug 2015 21:32:32 +0000 (16:32 -0500)
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

drivers/net/e1000.c
drivers/net/e1000.h
drivers/net/e1000_spi.c

index e81641054d6d8618ee3b429135c91f1706872f27..187517b7d1395a75023bda876331f9b730e1f2d5 100644 (file)
@@ -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
index 23a81e6c2dbce133ffed8d9d8bd38351bdd925c5..989f01df7adddf2980b4f13b91c1d4b966810999 100644 (file)
@@ -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>
index 93043a1ade4b7db911c6484314817e1ce28d255e..e7f68263a47352c1e169e5387f0f6b055e85ce97 100644 (file)
@@ -1,3 +1,4 @@
+#include <common.h>
 #include "e1000.h"
 #include <linux/compiler.h>