]> git.baikalelectronics.ru Git - kernel.git/commit
can: mcp251x: Check return value of spi_setup()
authorAlexander Shiyan <shc_work@mail.ru>
Fri, 28 Mar 2014 10:14:44 +0000 (14:14 +0400)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 24 Apr 2014 20:54:15 +0000 (22:54 +0200)
commitdbdddad0d5d9891863fee3cc11fd7fe742f33141
treefab5406e6b9ae709ec2ade1cc70e91613421e63b
parent2e5b4e9ff02ea37310f5436fcfcbfb55bd9aa258
can: mcp251x: Check return value of spi_setup()

This patch moves setup of SPI bus a bit earlier and adds check for spi_setup()
result to be sure SPI bus is communicating with the device properly.

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