brcm47xx: add a new version of the nvram rewrite patch
[librecmc/librecmc.git] / target / linux / brcm47xx / patches-3.6 / 700-ssb-gigabit-ethernet-driver.patch
index cc9c178be067059acf0e71f5d0dd6d9bcd8301b1..fe65cc451df256073f8c58182312a3fcb7bd320c 100644 (file)
  }
  
 -#ifdef CONFIG_BCM47XX
--#include <asm/mach-bcm47xx/nvram.h>
+-#include <bcm47xx_nvram.h>
 -/* Get the device MAC address */
 -static inline void ssb_gige_get_macaddr(struct pci_dev *pdev, u8 *macaddr)
 -{
 -      char buf[20];
--      if (nvram_getenv("et0macaddr", buf, sizeof(buf)) < 0)
+-      if (bcm47xx_nvram_getenv("et0macaddr", buf, sizeof(buf)) < 0)
 -              return;
--      nvram_parse_macaddr(buf, macaddr);
+-      bcm47xx_nvram_parse_macaddr(buf, macaddr);
 -}
 -#else
  static inline void ssb_gige_get_macaddr(struct pci_dev *pdev, u8 *macaddr)