From: Alexander Shiyan Date: Fri, 28 Mar 2014 10:14:44 +0000 (+0400) Subject: can: mcp251x: Check return value of spi_setup() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~36^2~320^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31473c286cc09720c0238d085c9de2b890ddb965;p=pandora-kernel.git 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 Tested-by: Alexander Shiyan Signed-off-by: Marc Kleine-Budde --- Reading git-diff-tree failed