[adm8668] move setup-related functions to their own file
[openwrt/svn-archive/archive.git] / target / linux / brcm47xx / patches-3.3 / 002-MIPS-BCM47XX-fix-signature-of-nvram_parse_macaddr.patch
1 --- a/arch/mips/include/asm/mach-bcm47xx/nvram.h
2 +++ b/arch/mips/include/asm/mach-bcm47xx/nvram.h
3 @@ -37,7 +37,7 @@ struct nvram_header {
4
5 extern int nvram_getenv(char *name, char *val, size_t val_len);
6
7 -static inline void nvram_parse_macaddr(char *buf, u8 *macaddr)
8 +static inline void nvram_parse_macaddr(char *buf, u8 macaddr[6])
9 {
10 if (strchr(buf, ':'))
11 sscanf(buf, "%hhx:%hhx:%hhx:%hhx:%hhx:%hhx", &macaddr[0],