1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-07-08 16:51:05 +03:00

ar71xx: allow to pass negative offset values for ar71xx_init_mac

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29457 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
juhosg 2011-12-05 21:10:55 +00:00
parent 097436bca8
commit a97fd90341
2 changed files with 3 additions and 3 deletions

View 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);

View 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;