spi/bitbang: check for setup_transfer during initialization
authorSascha Hauer <s.hauer@pengutronix.de>
Tue, 8 Feb 2011 09:46:14 +0000 (10:46 +0100)
committerGrant Likely <grant.likely@secretlab.ca>
Tue, 15 Feb 2011 22:05:58 +0000 (15:05 -0700)
commitea3065df7ddffe4669136619ad712783ccee22c6
treed88eeca492e5de057d3011807715c5d020fba2ba
parent1974eba605557e934764cb83c8ceb0eca78f011a
spi/bitbang: check for setup_transfer during initialization

setup_transfer is mandatory if spi_bitbang_transfer is used, so
check for it during initialization and not each time during runtime.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/spi_bitbang.c