1 From e6730c06cfc827d715f43e9bd276ae939bb86af9 Mon Sep 17 00:00:00 2001
2 From: Hauke Mehrtens <hauke@hauke-m.de>
3 Date: Fri, 22 Jul 2011 17:11:51 +0200
4 Subject: [PATCH 23/26] bcma: use randoom mac address as long as reading it out does not work
7 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
9 drivers/bcma/sprom.c | 5 ++++-
10 1 files changed, 4 insertions(+), 1 deletions(-)
12 --- a/drivers/bcma/sprom.c
13 +++ b/drivers/bcma/sprom.c
16 #include <linux/dma-mapping.h>
17 #include <linux/slab.h>
18 +#include <linux/etherdevice.h>
20 #define SPOFF(offset) ((offset) / sizeof(u16))
22 @@ -144,8 +145,10 @@ int bcma_sprom_get(struct bcma_bus *bus)
23 if (!bus->drv_cc.core)
26 - if (!(bus->drv_cc.capabilities & BCMA_CC_CAP_SPROM))
27 + if (!(bus->drv_cc.capabilities & BCMA_CC_CAP_SPROM)) {
28 + random_ether_addr(bus->sprom.il0mac);
32 sprom = kcalloc(SSB_SPROMSIZE_WORDS_R4, sizeof(u16),