]> git.baikalelectronics.ru Git - kernel.git/commit
spi/pxa2xx: convert to the common clk framework
authorMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 22 Jan 2013 10:26:27 +0000 (12:26 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 26 Jan 2013 07:21:37 +0000 (15:21 +0800)
commit51b938249d4e137d5bb1afc4761f724b9a769b55
tree09a2525b7710c0366dc99ba86cd51ec5a6e4c6f8
parent493e6d82124aed1d7e6fc6f3fbf7293582820109
spi/pxa2xx: convert to the common clk framework

Convert clk_enable() to clk_prepare_enable() and clk_disable() to
clk_disable_unprepare() respectively in order to support the common clk
framework. Otherwise we get warnings on the console as the clock is not
prepared before it is enabled.

In addition we must cache the maximum clock rate to drv_data->max_clk_rate
at probe time because clk_get_rate() cannot be called in tasklet context.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/spi/spi-pxa2xx.c
include/linux/spi/pxa2xx_spi.h