From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Babic Date: Tue, 04 Jan 2011 11:20:22 +0100 Subject: [U-Boot] net/eth.c drivers/net/rtl8019.c eth_xxx function name dunplication In-Reply-To: References: Message-ID: <4D22F466.7060904@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 01/04/2011 08:55 AM, qq wrote: > These words show me that net/eth.c has "eth_send" and drivers/net/rtl8019.c > also has "eth_send" function as the same name. > My board use RTL8019AS ethernet controller,s3c44b0 CPU. > i couldn`t figure out what is wrong with the code and how to fix it,Thanks a > lot for any suggestion It seems to me that the rtl8019 driver was never updated according to the eth_device stucture (I think it was the introduction of CONFIG_NET_MULTI). Network drivers must not expose global functions, and instead of that they must set their callbacks in a struct eth_device and register itself with eth_register(). Anyway, I do not find any board in actual u-boot code using this driver. It seems to me like dead code... Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de =====================================================================