[PATCH] pcnet32: use MAC address from prom also on powerpc

The CSR contains garbage after a coldboot on RS/6000.
One some systems (like my 44p 270) the MAC address is all FF,
on others (like my B50) it is ff:ff:ff:fd:ff:6b.

It can eventually be fixed by loading pcnet32, set the interface
into the UP state, rmmod pcnet32 and load it again. But this worked
only on the 270.

Only netbooting after a cold start provides the correct MAC address
via prom and CSR. This makes it very unreliable.
I dont know why the MAC is stored in two different places. Remove
the special case for powerpc, which was added in early 2.4 development.

Signed-off-by: Olaf Hering <olh@suse.de>

drivers/net/pcnet32.c | 5 -----
1 files changed, 5 deletions(-)
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>

authored by Olaf Hering and committed by Jeff Garzik 016cc850 20234989

-5
-5
drivers/net/pcnet32.c
··· 1251 1252 if (memcmp(promaddr, dev->dev_addr, 6) 1253 || !is_valid_ether_addr(dev->dev_addr)) { 1254 - #ifndef __powerpc__ 1255 if (is_valid_ether_addr(promaddr)) { 1256 - #else 1257 - if (!is_valid_ether_addr(dev->dev_addr) 1258 - && is_valid_ether_addr(promaddr)) { 1259 - #endif 1260 if (pcnet32_debug & NETIF_MSG_PROBE) { 1261 printk(" warning: CSR address invalid,\n"); 1262 printk(KERN_INFO " using instead PROM address of");
··· 1251 1252 if (memcmp(promaddr, dev->dev_addr, 6) 1253 || !is_valid_ether_addr(dev->dev_addr)) { 1254 if (is_valid_ether_addr(promaddr)) { 1255 if (pcnet32_debug & NETIF_MSG_PROBE) { 1256 printk(" warning: CSR address invalid,\n"); 1257 printk(KERN_INFO " using instead PROM address of");