diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2013-01-03 01:53:30 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2013-01-03 01:53:30 +0000 |
commit | 25afeba608b9db64cc0cab1f7be790f64193f590 (patch) | |
tree | f293f93d06a2a30ce21d64d2a64763ba7bbd4e6c /target/linux/brcm47xx/patches-3.6/700-ssb-gigabit-ethernet-driver.patch | |
parent | edc7ab525ff7cc45ea478b8b936e596789eb851a (diff) | |
download | mtk-20170518-25afeba608b9db64cc0cab1f7be790f64193f590.zip mtk-20170518-25afeba608b9db64cc0cab1f7be790f64193f590.tar.gz mtk-20170518-25afeba608b9db64cc0cab1f7be790f64193f590.tar.bz2 |
brcm47xx: add a new version of the nvram rewrite patch
This is the version like it was send for mainline inclusion.
SVN-Revision: 34988
Diffstat (limited to 'target/linux/brcm47xx/patches-3.6/700-ssb-gigabit-ethernet-driver.patch')
-rw-r--r-- | target/linux/brcm47xx/patches-3.6/700-ssb-gigabit-ethernet-driver.patch | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/brcm47xx/patches-3.6/700-ssb-gigabit-ethernet-driver.patch b/target/linux/brcm47xx/patches-3.6/700-ssb-gigabit-ethernet-driver.patch index cc9c178..fe65cc4 100644 --- a/target/linux/brcm47xx/patches-3.6/700-ssb-gigabit-ethernet-driver.patch +++ b/target/linux/brcm47xx/patches-3.6/700-ssb-gigabit-ethernet-driver.patch @@ -406,14 +406,14 @@ } -#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) |