summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/stmicro/stmmac/dwmac100.h
diff options
context:
space:
mode:
authorRayagond Kokatanur2012-08-22 23:28:18 +0200
committerDavid S. Miller2012-08-24 19:25:05 +0200
commitbd4242dfe85470b9caecbd049310518f9b9e3f14 (patch)
treebdfd499d3a96a2251f50ba3f1e5ef2b0e2833337 /drivers/net/ethernet/stmicro/stmmac/dwmac100.h
parentipv4: take rt_uncached_lock only if needed (diff)
downloadkernel-qcow2-linux-bd4242dfe85470b9caecbd049310518f9b9e3f14.tar.gz
kernel-qcow2-linux-bd4242dfe85470b9caecbd049310518f9b9e3f14.tar.xz
kernel-qcow2-linux-bd4242dfe85470b9caecbd049310518f9b9e3f14.zip
stmmac: add header inclusion protection
This patch adds "#ifndef __<header>_H" for protecting header from double inclusion. Signed-off-by: Rayagond Kokatanur <rayagond@vayavyalabs.com> Hacked-by: Giuseppe Cavallaro <peppe.cavallaro@st.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/dwmac100.h')
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/dwmac100.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac100.h b/drivers/net/ethernet/stmicro/stmmac/dwmac100.h
index 7c6d857a9cc7..2ec6aeae349e 100644
--- a/drivers/net/ethernet/stmicro/stmmac/dwmac100.h
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac100.h
@@ -22,6 +22,9 @@
Author: Giuseppe Cavallaro <peppe.cavallaro@st.com>
*******************************************************************************/
+#ifndef __DWMAC100_H__
+#define __DWMAC100_H__
+
#include <linux/phy.h>
#include "common.h"
@@ -119,3 +122,5 @@ enum ttc_control {
#define DMA_MISSED_FRAME_M_CNTR 0x0000ffff /* Missed Frame Couinter */
extern const struct stmmac_dma_ops dwmac100_dma_ops;
+
+#endif /* __DWMAC100_H__ */