mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-01-03 04:42:23 +00:00
ar71xx: allow to pass negative offset values for ar71xx_init_mac
SVN-Revision: 29457
This commit is contained in:
parent
ada92aee62
commit
0103069372
@ -1051,9 +1051,9 @@ static int __init ar71xx_kmac_setup(char *str)
|
|||||||
__setup("kmac=", ar71xx_kmac_setup);
|
__setup("kmac=", ar71xx_kmac_setup);
|
||||||
|
|
||||||
void __init ar71xx_init_mac(unsigned char *dst, const unsigned char *src,
|
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)) {
|
if (!is_valid_ether_addr(src)) {
|
||||||
memset(dst, '\0', ETH_ALEN);
|
memset(dst, '\0', ETH_ALEN);
|
||||||
|
@ -23,7 +23,7 @@ void ar71xx_add_device_spi(struct ar71xx_spi_platform_data *pdata,
|
|||||||
extern unsigned char ar71xx_mac_base[] __initdata;
|
extern unsigned char ar71xx_mac_base[] __initdata;
|
||||||
void ar71xx_parse_mac_addr(char *mac_str) __init;
|
void ar71xx_parse_mac_addr(char *mac_str) __init;
|
||||||
void ar71xx_init_mac(unsigned char *dst, const unsigned char *src,
|
void ar71xx_init_mac(unsigned char *dst, const unsigned char *src,
|
||||||
unsigned offset) __init;
|
int offset) __init;
|
||||||
|
|
||||||
struct ar71xx_eth_pll_data {
|
struct ar71xx_eth_pll_data {
|
||||||
u32 pll_10;
|
u32 pll_10;
|
||||||
|
Loading…
Reference in New Issue
Block a user