Re: [U-Boot] [PATCH 1/8] net: emaclite: Change driver name and add address

2011-08-28 Thread Michal Simek
Mike Frysinger wrote: > On Friday, August 26, 2011 08:47:16 Michal Simek wrote: >> -sprintf(dev->name, "Xilinx_Emaclite"); >> +sprintf(dev->name, "Xelite.%x", base_addr); > > you calculated this down to the byte huh ;). i see it uses the full 16. Yes, I had to because eth_device has 16 c

Re: [U-Boot] [PATCH 1/8] net: emaclite: Change driver name and add address

2011-08-26 Thread Mike Frysinger
On Friday, August 26, 2011 08:47:16 Michal Simek wrote: > - sprintf(dev->name, "Xilinx_Emaclite"); > + sprintf(dev->name, "Xelite.%x", base_addr); you calculated this down to the byte huh ;). i see it uses the full 16. do we have to worry about people who specify the device in their envs

[U-Boot] [PATCH 1/8] net: emaclite: Change driver name and add address

2011-08-26 Thread Michal Simek
Current xilinx emaclite use net multi registration but doesn't support several emaclites interfaces. Changing driver name with adding address to name is the first step how to distiguish several drivers. Signed-off-by: Michal Simek --- drivers/net/xilinx_emaclite.c |2 +- 1 files changed, 1 i