From: Gabor Juhos Date: Thu, 27 Dec 2012 09:42:28 +0000 (+0100) Subject: spi/ath79: avoid multiple initialization of the SPI controller X-Git-Tag: v3.9-rc1~148^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4a31f43005512b366e8bfc346e7f14c1a7a1ba7;p=pandora-kernel.git 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 Signed-off-by: Grant Likely --- Reading git-diff-tree failed