]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2e31d8a655dde0d5f9d0bc7dfd3f7011ab740b30
treeb1f49e52ffc5abc0563480bd8ac36cae142ef5d4
parente58ca6e67c97891a248b59e787fce42153fed0e3
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