macb: use random mac if stored address in EEPROM is invalid
authorSven Schnelle <svens@stackframe.org>
Mon, 9 Jun 2008 23:33:57 +0000 (16:33 -0700)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 12 Jun 2008 01:58:28 +0000 (21:58 -0400)
commitd1d5741d8568c268ec234a5b35af4a04498be6d8
treecda12027b3afb215d085229a86a40584f3637450
parent86a74ff21a7ac4bc06b18076ddb0347712b46cfd
macb: use random mac if stored address in EEPROM is invalid

We should use a random mac address if the EEPROM doesn't contain a valid
one. This makes life on Boards with unprogrammed EEPROM devices easier.

Signed-off-by: Sven Schnelle <svens@stackframe.org>
Cc: Haavard Skinnemoen <hskinnemoen@atmel.com>
Cc: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/macb.c