net: ethernet: ax88796: support generating a random mac address
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thu, 25 May 2017 20:55:11 +0000 (22:55 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 May 2017 18:56:19 +0000 (14:56 -0400)
commit03d1da3c050b9d0f9536ccd0965af91ab8e1df63
tree716de53c24cc8cb66cd85cab1c256bf3059849f6
parentdb48cc2d31ee5b8ad3238633c4d76e473524b677
net: ethernet: ax88796: support generating a random mac address

Instead of falling back to 00:00:00:00:00:00 generate a random address
if none is provided via platform data or from the device's register
space.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/8390/ax88796.c