commit | 31473c286cc09720c0238d085c9de2b890ddb965 | [log] [tgz] |
---|---|---|
author | Alexander Shiyan <shc_work@mail.ru> | Fri Mar 28 14:14:44 2014 +0400 |
committer | Marc Kleine-Budde <mkl@pengutronix.de> | Thu Apr 24 22:54:15 2014 +0200 |
tree | fab5406e6b9ae709ec2ade1cc70e91613421e63b | |
parent | 6afc0d7a85770abd282ebed41f0f35cde390d861 [diff] |
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>