can: mcp251x: Improve mcp251x_hw_probe()
authorAlexander Shiyan <shc_work@mail.ru>
Fri, 28 Mar 2014 10:14:46 +0000 (14:14 +0400)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 24 Apr 2014 20:54:15 +0000 (22:54 +0200)
commitee967fffd91031f18dbe36bf6a273d8a75f663cf
tree4b503a52143461c679e0df9c40122b04a976b903
parentff06d611a31c4b687c7859e3c7516a38194d4d25
can: mcp251x: Improve mcp251x_hw_probe()

This patch adds check for mcp251x_hw_reset() result on startup and
removes unnecessary checking for CANSTAT register since this value
is being checked in mcp251x_hw_reset().

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Tested-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/mcp251x.c