From: Boris BREZILLON Date: Tue, 23 Sep 2014 14:41:07 +0000 (+0200) Subject: rtc: at91sam9: use clk API instead of relying on AT91_SLOW_CLOCK X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~13^2~12^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a975f47f6e9a4e9762c81973cf2305003aa5b7dc;p=pandora-kernel.git rtc: at91sam9: use clk API instead of relying on AT91_SLOW_CLOCK The RTT block is using the slow clock which is accessible through the clk API. Use the clk API to retrieve, enable and get the slow clk rate instead of the AT91_SLOW_CLOCK macro (which hardcodes the slow clk rate). Doing this allows us to reference the clk thus preventing the CCF from disabling it during the "disable unused" phase. Signed-off-by: Boris BREZILLON Acked-by: Alexandre Belloni Acked-by: Johan Hovold Acked-by: Arnd Bergmann Signed-off-by: Nicolas Ferre --- Reading git-diff-tree failed