1 From a0c7d2569ed39b8b0d90a431d80babc0f5f1f864 Mon Sep 17 00:00:00 2001
2 From: Hauke Mehrtens <hauke@hauke-m.de>
3 Date: Wed, 10 Jul 2013 17:55:34 +0200
4 Subject: [PATCH 17/17] bgmac: make bgmac work on systems without nvram
7 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
9 drivers/net/ethernet/broadcom/bgmac.c | 4 ++++
10 1 file changed, 4 insertions(+)
12 --- a/drivers/net/ethernet/broadcom/bgmac.c
13 +++ b/drivers/net/ethernet/broadcom/bgmac.c
15 #include <linux/phy.h>
16 #include <linux/interrupt.h>
17 #include <linux/dma-mapping.h>
18 +#ifdef CONFIG_BCM47XX
19 #include <bcm47xx_nvram.h>
21 +#define bcm47xx_nvram_getenv(a, b, c) -1
24 static const struct bcma_device_id bgmac_bcma_tbl[] = {
25 BCMA_CORE(BCMA_MANUF_BCM, BCMA_CORE_4706_MAC_GBIT, BCMA_ANY_REV, BCMA_ANY_CLASS),