SMC911X: Add chip auto detection
authorOlof Johansson <olof@lixom.net>
Tue, 29 Sep 2009 14:21:29 +0000 (10:21 -0400)
committerTom Rix <Tom.Rix@windriver.com>
Sun, 4 Oct 2009 15:51:31 +0000 (10:51 -0500)
commit4eb3af078267e103fb957cb831497cf7670fb3f4
tree35abb7ed9ea90ddd4509c536b2ea12ceee12c53e
parent54737ba17a8444175fa94d758b83f120bbea3351
SMC911X: Add chip auto detection

Refactor the smc911x driver to allow for detecting when the chip is missing.
I.e. the detect_chip() function is called earlier and will abort gracefully
when the Chip ID read returns all 1's.

Signed-off-by: Olof Johansson <olof@lixom.net>
Acked-by: Dirk Behme <dirk.behme@googlemail.com>
Acked-by: Ben Warren <biggerbadderben@gmail.com>
drivers/net/smc911x.c
drivers/net/smc911x.h