]> git.karo-electronics.de Git - karo-tx-linux.git/commit
spi/bitbang: don't error out if there is no setup callback provided
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thu, 8 Aug 2013 14:09:49 +0000 (16:09 +0200)
committerJason Liu <r64343@freescale.com>
Wed, 30 Oct 2013 01:56:06 +0000 (09:56 +0800)
commitb9e15edeb5c0fcdfd5a86e015fd8990bdc5f4f7e
tree04441b8714b2ec4af3fadd9181c0b934e6cf00da
parentf9378c78b6439d0368062168d3b3178851927b20
spi/bitbang: don't error out if there is no setup callback provided

It's perfectly valid not to have a setup callback when the probe routine
does all the needed things. So don't even check for this case and trust
the caller.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
Signed-off-by: Huang Shijie <b32955@freescale.com>
drivers/spi/spi-bitbang.c