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)
commit7d0ec8b6f40b356f780b79de63eeafd6b907d68c
tree669ce3a25a14487c4dd0bb08839719e89245ca9c
parentc517d838eb7d07bbe9507871fab3931deccff539
spi: bitbang: Make setup_transfer() callback optional

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
This page took 0.03517 seconds and 5 git commands to generate.