]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
wandboard: Fix sparse warning
authorFabio Estevam <fabio.estevam@freescale.com>
Sat, 15 Feb 2014 16:52:00 +0000 (14:52 -0200)
committerStefano Babic <sbabic@denx.de>
Wed, 5 Mar 2014 11:23:48 +0000 (12:23 +0100)
Add a prototype for board_phy_config() to fix the following sparse warning:

wandboard.c:200:5: warning: symbol 'board_phy_config' was not declared. Should it be static?

Cc: Joe Hershberger <joe.hershberger@ni.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
board/wandboard/wandboard.c
include/phy.h

index dbced1c3087f15bd23b176dd8f921e9defa0b63d..6918614ec1b2bc5de4b4fb1c2494f6df4a8696d6 100644 (file)
@@ -25,6 +25,7 @@
 #include <miiphy.h>
 #include <netdev.h>
 #include <linux/fb.h>
+#include <phy.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 1f22fa180c6247ee162b554e88780d516b6bba3a..d3ecd6378b3b97b718748ad06a8346a8dc409f03 100644 (file)
@@ -234,6 +234,8 @@ int phy_smsc_init(void);
 int phy_teranetics_init(void);
 int phy_vitesse_init(void);
 
+int board_phy_config(struct phy_device *phydev);
+
 /* PHY UIDs for various PHYs that are referenced in external code */
 #define PHY_UID_TN2020 0x00a19410