diff options
author | Stephen Boyd <sboyd@codeaurora.org> | 2011-02-23 12:37:42 -0500 |
---|---|---|
committer | David Brown <davidb@codeaurora.org> | 2011-02-28 15:40:17 -0500 |
commit | bd32344a6baa8baac9c2b3e9c6c649cc4ed53920 (patch) | |
tree | 0b272cc0ea1e7dae1d86fd5ea43de78264000eac /arch/arm/mach-msm/devices.h | |
parent | 2a52220c89e02423aa23e6b9fb6dc0c706465a82 (diff) |
msm: clock: Migrate to clkdev
Migrating to clkdev has several advantages:
* Less code in mach-msm/clock.c
* A more robust clk_get() implementation
* clk_add_alias() support
* clk_get_sys() support
In general, this will help board authors setup clock aliases and
break the dependency on device pointers in the clock tables.
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: David Brown <davidb@codeaurora.org>
Diffstat (limited to 'arch/arm/mach-msm/devices.h')
-rw-r--r-- | arch/arm/mach-msm/devices.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/arm/mach-msm/devices.h b/arch/arm/mach-msm/devices.h index e2643b340b2a..9545c196c6e8 100644 --- a/arch/arm/mach-msm/devices.h +++ b/arch/arm/mach-msm/devices.h | |||
@@ -16,6 +16,8 @@ | |||
16 | #ifndef __ARCH_ARM_MACH_MSM_DEVICES_H | 16 | #ifndef __ARCH_ARM_MACH_MSM_DEVICES_H |
17 | #define __ARCH_ARM_MACH_MSM_DEVICES_H | 17 | #define __ARCH_ARM_MACH_MSM_DEVICES_H |
18 | 18 | ||
19 | #include <linux/clkdev.h> | ||
20 | |||
19 | #include "clock.h" | 21 | #include "clock.h" |
20 | 22 | ||
21 | extern struct platform_device msm_device_uart1; | 23 | extern struct platform_device msm_device_uart1; |
@@ -44,13 +46,13 @@ extern struct platform_device msm_device_mddi0; | |||
44 | extern struct platform_device msm_device_mddi1; | 46 | extern struct platform_device msm_device_mddi1; |
45 | extern struct platform_device msm_device_mdp; | 47 | extern struct platform_device msm_device_mdp; |
46 | 48 | ||
47 | extern struct clk msm_clocks_7x01a[]; | 49 | extern struct clk_lookup msm_clocks_7x01a[]; |
48 | extern unsigned msm_num_clocks_7x01a; | 50 | extern unsigned msm_num_clocks_7x01a; |
49 | 51 | ||
50 | extern struct clk msm_clocks_7x30[]; | 52 | extern struct clk_lookup msm_clocks_7x30[]; |
51 | extern unsigned msm_num_clocks_7x30; | 53 | extern unsigned msm_num_clocks_7x30; |
52 | 54 | ||
53 | extern struct clk msm_clocks_8x50[]; | 55 | extern struct clk_lookup msm_clocks_8x50[]; |
54 | extern unsigned msm_num_clocks_8x50; | 56 | extern unsigned msm_num_clocks_8x50; |
55 | 57 | ||
56 | #endif | 58 | #endif |