diff options
-rw-r--r-- | drivers/net/stmmac/common.h | 5 | ||||
-rw-r--r-- | drivers/net/stmmac/stmmac.h | 5 |
2 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/stmmac/common.h b/drivers/net/stmmac/common.h index 27a05b443ec3..144f76fd3e39 100644 --- a/drivers/net/stmmac/common.h +++ b/drivers/net/stmmac/common.h | |||
@@ -23,6 +23,11 @@ | |||
23 | *******************************************************************************/ | 23 | *******************************************************************************/ |
24 | 24 | ||
25 | #include <linux/netdevice.h> | 25 | #include <linux/netdevice.h> |
26 | #if defined(CONFIG_VLAN_8021Q) || defined(CONFIG_VLAN_8021Q_MODULE) | ||
27 | #define STMMAC_VLAN_TAG_USED | ||
28 | #include <linux/if_vlan.h> | ||
29 | #endif | ||
30 | |||
26 | #include "descs.h" | 31 | #include "descs.h" |
27 | 32 | ||
28 | #undef CHIP_DEBUG_PRINT | 33 | #undef CHIP_DEBUG_PRINT |
diff --git a/drivers/net/stmmac/stmmac.h b/drivers/net/stmmac/stmmac.h index 0d776bc23143..1a6eb7baa298 100644 --- a/drivers/net/stmmac/stmmac.h +++ b/drivers/net/stmmac/stmmac.h | |||
@@ -23,11 +23,6 @@ | |||
23 | #define DRV_MODULE_VERSION "Jan_2010" | 23 | #define DRV_MODULE_VERSION "Jan_2010" |
24 | #include <linux/stmmac.h> | 24 | #include <linux/stmmac.h> |
25 | 25 | ||
26 | #if defined(CONFIG_VLAN_8021Q) || defined(CONFIG_VLAN_8021Q_MODULE) | ||
27 | #define STMMAC_VLAN_TAG_USED | ||
28 | #include <linux/if_vlan.h> | ||
29 | #endif | ||
30 | |||
31 | #include "common.h" | 26 | #include "common.h" |
32 | #ifdef CONFIG_STMMAC_TIMER | 27 | #ifdef CONFIG_STMMAC_TIMER |
33 | #include "stmmac_timer.h" | 28 | #include "stmmac_timer.h" |