From: Geert Uytterhoeven Date: Tue, 25 Feb 2014 10:21:11 +0000 (+0100) Subject: spi: sh-msiof: Move clock management to (un)prepare_message() X-Git-Tag: v3.15-rc1~147^2~2^5~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c833ff7304511805ce5a3378d1637e39e00e00ea;p=pandora-kernel.git spi: sh-msiof: Move clock management to (un)prepare_message() Move clock management and pin configuration from the bitbang chipselect() method to the SPI core prepare_message() and unprepare_message() methods. As spi_master.{,un}prepare_message() is guaranteed to be called in matching pairs, the clock management synchronization is no longer needed. As sh_msiof_spi_set_pin_regs() is no longer called at spi_master.setup() time (through spi_bitbang_setup() and the spi_bitbang.chipselect() callback), we now have to take care of that ourselves. Signed-off-by: Geert Uytterhoeven Acked-by: Magnus Damm Signed-off-by: Mark Brown --- Reading git-diff-tree failed