spi/ath79: avoid multiple initialization of the SPI controller
authorGabor Juhos <juhosg@openwrt.org>
Thu, 27 Dec 2012 09:42:28 +0000 (10:42 +0100)
committerGrant Likely <grant.likely@secretlab.ca>
Tue, 5 Feb 2013 12:59:47 +0000 (12:59 +0000)
commitc4a31f43005512b366e8bfc346e7f14c1a7a1ba7
treeb1f49e52ffc5abc0563480bd8ac36cae142ef5d4
parent95d79419feffb326a3d5cb50e2248129dec06bb0
spi/ath79: avoid multiple initialization of the SPI controller

Currently we are initializing the SPI controller in
the chip select line function, and that function is
called once for each SPI device on the bus. If a
board has multiple SPI devices, the controller will
be initialized multiple times.

Introduce ath79_spi_{en,dis}able helper functions,
and call those from probe/response in order to avoid
the mutliple initialization of the controller.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/spi-ath79.c
This page took 0.025098 seconds and 5 git commands to generate.