summaryrefslogtreecommitdiff
path: root/target/linux/ar71xx/files/arch
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2011-12-05 21:10:55 +0000
committerGabor Juhos <juhosg@openwrt.org>2011-12-05 21:10:55 +0000
commit0103069372c7628ac018c024d1237cfa8eb4785c (patch)
tree92bf8f171fc0964faf7e43356a5f091ee6afe534 /target/linux/ar71xx/files/arch
parentada92aee62143b12ffa408edcf52797e8cb8074f (diff)
downloadmtk-20170518-0103069372c7628ac018c024d1237cfa8eb4785c.zip
mtk-20170518-0103069372c7628ac018c024d1237cfa8eb4785c.tar.gz
mtk-20170518-0103069372c7628ac018c024d1237cfa8eb4785c.tar.bz2
ar71xx: allow to pass negative offset values for ar71xx_init_mac
SVN-Revision: 29457
Diffstat (limited to 'target/linux/ar71xx/files/arch')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/devices.c4
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/devices.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/devices.c b/target/linux/ar71xx/files/arch/mips/ar71xx/devices.c
index d71e473..548a35e 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/devices.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/devices.c
@@ -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);
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/devices.h b/target/linux/ar71xx/files/arch/mips/ar71xx/devices.h
index 2553d17..b92e482 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/devices.h
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/devices.h
@@ -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;