[PATCH 3/7] net: cpsw: header, Add missing include

Paolo Pisati paolo.pisati at canonical.com
Thu May 7 13:00:46 UTC 2015


From: Markus Pargmann <mpa at pengutronix.de>

BugLink: http://bugs.launchpad.net/bugs/1452628

"MII_BUS_ID_SIZE" is defined in linux/phy.h which is not included in the
cpsw.h file.

Signed-off-by: Markus Pargmann <mpa at pengutronix.de>
Reviewed-by: Wolfram Sang <wsa at the-dreams.de>
Signed-off-by: David S. Miller <davem at davemloft.net>
(cherry picked from commit bd07d34f00dfe5025faab0263554e3052ce5d58e)
Signed-off-by: Paolo Pisati <paolo.pisati at canonical.com>
---
 drivers/net/ethernet/ti/cpsw.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/ethernet/ti/cpsw.h b/drivers/net/ethernet/ti/cpsw.h
index 574f49d..1b71067 100644
--- a/drivers/net/ethernet/ti/cpsw.h
+++ b/drivers/net/ethernet/ti/cpsw.h
@@ -15,6 +15,7 @@
 #define __CPSW_H__
 
 #include <linux/if_ether.h>
+#include <linux/phy.h>
 
 struct cpsw_slave_data {
 	char		phy_id[MII_BUS_ID_SIZE];
-- 
1.9.1





More information about the kernel-team mailing list