spi: bitbang: Make setup_transfer() callback optional
authorPelle Nilsson <per.nilsson@xelmo.com>
Tue, 14 Apr 2015 13:40:17 +0000 (15:40 +0200)
committerMark Brown <broonie@kernel.org>
Sat, 18 Apr 2015 11:01:03 +0000 (12:01 +0100)
Some controller drivers have no need of this callback (spi-altera even
causes a NULL pointer dereference because it doesn't register the callback,
falsely assuming that it is already optional).

Fixes: 30af9b558a56 ("spi/bitbang: Drop empty setup() functions")
Signed-off-by: Pelle Nilsson <per.nilsson@xelmo.com>
Reviewed-by: Ezequiel Garcia <ezequiel.garcia@vanguardiasur.com.ar>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-bitbang.c

Simple merge