]> git.baikalelectronics.ru Git - kernel.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)
committerMark Brown <broonie@linaro.org>
Fri, 9 Aug 2013 16:32:10 +0000 (17:32 +0100)
commit20729586355aa376d27c2651611f683f396e652c
tree79669fb2b9f2f6756dabc592b6d2c652f3787bd2
parent74dfeb2746ab9f4ec671df6867d07125c8f60599
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>
drivers/spi/spi-bitbang.c