Re: [PATCH v2] arch/mips rb532: replace mac_addr parsing

2014-06-24 Thread James Hogan
Hi Daniel, On 24/06/14 09:45, Daniel Walter wrote: > @@ -333,7 +311,13 @@ static int __init plat_setup_devices(void) > static int __init setup_kmac(char *s) > { > printk(KERN_INFO "korina mac = %s\n", s); > - parse_mac_addr(s); > + sscanf(s, "%hhx:%hhx:%hhx:%hhx:%hhx:%hhx", > +

[PATCH v2] arch/mips rb532: replace mac_addr parsing

2014-06-24 Thread Daniel Walter
Replace parse_mac_addr with sscanf. Signed-off-by: Daniel Walter --- Changes since v1: sending in the working patch Patch applies against current linux-tree --- arch/mips/rb532/devices.c | 30 +++--- 1 file changed, 7 insertions(+), 23 deletions(-) --- diff --git

[PATCH v2] arch/mips rb532: replace mac_addr parsing

2014-06-24 Thread Daniel Walter
Replace parse_mac_addr with sscanf. Signed-off-by: Daniel Walter dwal...@google.com --- Changes since v1: sending in the working patch Patch applies against current linux-tree --- arch/mips/rb532/devices.c | 30 +++--- 1 file changed, 7 insertions(+), 23 deletions(-)

Re: [PATCH v2] arch/mips rb532: replace mac_addr parsing

2014-06-24 Thread James Hogan
Hi Daniel, On 24/06/14 09:45, Daniel Walter wrote: @@ -333,7 +311,13 @@ static int __init plat_setup_devices(void) static int __init setup_kmac(char *s) { printk(KERN_INFO korina mac = %s\n, s); - parse_mac_addr(s); + sscanf(s, %hhx:%hhx:%hhx:%hhx:%hhx:%hhx, +