From: Mika Westerberg Date: Tue, 22 Jan 2013 10:26:27 +0000 (+0200) Subject: spi/pxa2xx: convert to the common clk framework X-Git-Tag: v3.9-rc1~148^2~27^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3343b7a6d2cd0a980d0c4a0ce02ef48b6bfcc12a;p=pandora-kernel.git 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 Signed-off-by: Mark Brown --- Reading git-diff-tree failed