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",
> +                     &korina_dev0_data.mac[0],
> +                     &korina_dev0_data.mac[1],
> +                     &korina_dev0_data.mac[2],
> +                     &korina_dev0_data.mac[3],
> +                     &korina_dev0_data.mac[4],
> +                     &korina_dev0_data.mac[5]);

Does it make sense to go one better and use mac_pton() for this?

Cheers
James
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to