From d9785c14bf489908b8e39b1e20f0c14cb8fcda76 Mon Sep 17 00:00:00 2001 From: Marian Balakowicz Date: Wed, 30 Nov 2005 18:06:04 +0100 Subject: Fix miiphy global data initialization (problem on 4xx boards when no ethaddr is assigned). Initialization moved from miiphy_register() to eth_initialize(). Based on initial patch for 4xx platform by Matthias Fuchs. --- include/miiphy.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/miiphy.h') diff --git a/include/miiphy.h b/include/miiphy.h index 3c6ee770775..71716b04d40 100644 --- a/include/miiphy.h +++ b/include/miiphy.h @@ -53,6 +53,8 @@ int miiphy_duplex(char *devname, unsigned char addr); int miiphy_link(char *devname, unsigned char addr); #endif +void miiphy_init(void); + void miiphy_register(char *devname, int (* read)(char *devname, unsigned char addr, unsigned char reg, unsigned short *value), -- cgit v1.2.3