ar71xx: allow to pass negative offset values for ar71xx_init_mac
authorGabor Juhos <juhosg@openwrt.org>
Mon, 5 Dec 2011 21:10:55 +0000 (21:10 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Mon, 5 Dec 2011 21:10:55 +0000 (21:10 +0000)
SVN-Revision: 29457

target/linux/ar71xx/files/arch/mips/ar71xx/devices.c
target/linux/ar71xx/files/arch/mips/ar71xx/devices.h

index d71e473c754f4131ba081bc606756bce9e853a94..548a35e8535397f4d1f92048d1dc937cb2fdb474 100644 (file)
@@ -1051,9 +1051,9 @@ static int __init ar71xx_kmac_setup(char *str)
 __setup("kmac=", ar71xx_kmac_setup);
 
 void __init ar71xx_init_mac(unsigned char *dst, const unsigned char *src,
-                           unsigned offset)
+                           int offset)
 {
-       u32 t;
+       int t;
 
        if (!is_valid_ether_addr(src)) {
                memset(dst, '\0', ETH_ALEN);
index 2553d17cf34a0421defa4425f1d46262a4de3357..b92e482a58d4b4899fc3f6c16df143be49aa51f9 100644 (file)
@@ -23,7 +23,7 @@ void ar71xx_add_device_spi(struct ar71xx_spi_platform_data *pdata,
 extern unsigned char ar71xx_mac_base[] __initdata;
 void ar71xx_parse_mac_addr(char *mac_str) __init;
 void ar71xx_init_mac(unsigned char *dst, const unsigned char *src,
-                    unsigned offset) __init;
+                    int offset) __init;
 
 struct ar71xx_eth_pll_data {
        u32     pll_10;