net: ethernet: ti/cpsw-common.c: fix sparse warning
authorLad, Prabhakar <prabhakar.csengg@gmail.com>
Wed, 4 Feb 2015 12:31:28 +0000 (12:31 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Feb 2015 08:27:49 +0000 (00:27 -0800)
this patch fixes following sparse warning:

cpsw-common.c:23:5: warning: symbol 'cpsw_am33xx_cm_get_macid' was not declared. Should it be static?

Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw-common.c

index 763ada18ad3de25acb0fe9a37349f518b96c0d72..f59509486113150fb8162fa834ad8272e7823d4b 100644 (file)
@@ -17,6 +17,8 @@
 #include <linux/regmap.h>
 #include <linux/mfd/syscon.h>
 
+#include "cpsw.h"
+
 #define AM33XX_CTRL_MAC_LO_REG(offset, id) ((offset) + 0x8 * (id))
 #define AM33XX_CTRL_MAC_HI_REG(offset, id) ((offset) + 0x8 * (id) + 0x4)