diff options
author | Paul Walmsley <paul@pwsan.com> | 2010-01-26 22:13:10 -0500 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2010-01-29 12:14:22 -0500 |
commit | da4d2904abc0c31ac829e9c6d52106d5a6606507 (patch) | |
tree | 9093eb1ce3faebe32e7eb80bf67b82e0007363f7 | |
parent | 4680c29f69e981106da2abfea7f1a3e6f1b03791 (diff) |
OMAP2/3 clock: remove unnecessary includes and clean up header
Now that almost all of the code has been removed from clock2xxx.c and
clock34xx.c, many of the includes are now unnecessary and can be removed.
While we're here, standardize the initial comment blocks.
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Richard Woodruff <r-woodruff2@ti.com>
Cc: Jouni Högander <jouni.hogander@nokia.com>
-rw-r--r-- | arch/arm/mach-omap2/clock2xxx.c | 35 | ||||
-rw-r--r-- | arch/arm/mach-omap2/clock34xx.c | 16 |
2 files changed, 13 insertions, 38 deletions
diff --git a/arch/arm/mach-omap2/clock2xxx.c b/arch/arm/mach-omap2/clock2xxx.c index b7e81ec3d819..e98f48b0a5c6 100644 --- a/arch/arm/mach-omap2/clock2xxx.c +++ b/arch/arm/mach-omap2/clock2xxx.c | |||
@@ -1,15 +1,15 @@ | |||
1 | /* | 1 | /* |
2 | * linux/arch/arm/mach-omap2/clock.c | 2 | * clock2xxx.c - OMAP2xxx-specific clock integration code |
3 | * | 3 | * |
4 | * Copyright (C) 2005-2008 Texas Instruments, Inc. | 4 | * Copyright (C) 2005-2008 Texas Instruments, Inc. |
5 | * Copyright (C) 2004-2008 Nokia Corporation | 5 | * Copyright (C) 2004-2010 Nokia Corporation |
6 | * | 6 | * |
7 | * Contacts: | 7 | * Contacts: |
8 | * Richard Woodruff <r-woodruff2@ti.com> | 8 | * Richard Woodruff <r-woodruff2@ti.com> |
9 | * Paul Walmsley | 9 | * Paul Walmsley |
10 | * | 10 | * |
11 | * Based on earlier work by Tuukka Tikkanen, Tony Lindgren, | 11 | * Based on earlier work by Tuukka Tikkanen, Tony Lindgren, |
12 | * Gordon McNutt and RidgeRun, Inc. | 12 | * Gordon McNutt and RidgeRun, Inc. |
13 | * | 13 | * |
14 | * This program is free software; you can redistribute it and/or modify | 14 | * This program is free software; you can redistribute it and/or modify |
15 | * it under the terms of the GNU General Public License version 2 as | 15 | * it under the terms of the GNU General Public License version 2 as |
@@ -17,38 +17,23 @@ | |||
17 | */ | 17 | */ |
18 | #undef DEBUG | 18 | #undef DEBUG |
19 | 19 | ||
20 | #include <linux/module.h> | ||
21 | #include <linux/kernel.h> | 20 | #include <linux/kernel.h> |
22 | #include <linux/device.h> | ||
23 | #include <linux/list.h> | ||
24 | #include <linux/errno.h> | 21 | #include <linux/errno.h> |
25 | #include <linux/delay.h> | ||
26 | #include <linux/clk.h> | 22 | #include <linux/clk.h> |
27 | #include <linux/io.h> | 23 | #include <linux/io.h> |
28 | #include <linux/cpufreq.h> | ||
29 | #include <linux/bitops.h> | ||
30 | 24 | ||
31 | #include <plat/clock.h> | 25 | #include <plat/clock.h> |
32 | #include <plat/sram.h> | ||
33 | #include <plat/prcm.h> | ||
34 | #include <plat/clkdev_omap.h> | ||
35 | #include <asm/div64.h> | ||
36 | #include <asm/clkdev.h> | ||
37 | 26 | ||
38 | #include <plat/sdrc.h> | ||
39 | #include "clock.h" | 27 | #include "clock.h" |
40 | #include "clock2xxx.h" | 28 | #include "clock2xxx.h" |
41 | #include "opp2xxx.h" | ||
42 | #include "prm.h" | ||
43 | #include "prm-regbits-24xx.h" | ||
44 | #include "cm.h" | 29 | #include "cm.h" |
45 | #include "cm-regbits-24xx.h" | 30 | #include "cm-regbits-24xx.h" |
46 | 31 | ||
47 | struct clk *vclk, *sclk, *dclk; | 32 | struct clk *vclk, *sclk, *dclk; |
48 | 33 | ||
49 | /*------------------------------------------------------------------------- | 34 | /* |
50 | * Omap24xx specific clock functions | 35 | * Omap24xx specific clock functions |
51 | *-------------------------------------------------------------------------*/ | 36 | */ |
52 | 37 | ||
53 | #ifdef CONFIG_ARCH_OMAP2430 | 38 | #ifdef CONFIG_ARCH_OMAP2430 |
54 | 39 | ||
diff --git a/arch/arm/mach-omap2/clock34xx.c b/arch/arm/mach-omap2/clock34xx.c index d38ad44fe0aa..8a7db7a03bec 100644 --- a/arch/arm/mach-omap2/clock34xx.c +++ b/arch/arm/mach-omap2/clock34xx.c | |||
@@ -2,10 +2,10 @@ | |||
2 | * OMAP3-specific clock framework functions | 2 | * OMAP3-specific clock framework functions |
3 | * | 3 | * |
4 | * Copyright (C) 2007-2008 Texas Instruments, Inc. | 4 | * Copyright (C) 2007-2008 Texas Instruments, Inc. |
5 | * Copyright (C) 2007-2009 Nokia Corporation | 5 | * Copyright (C) 2007-2010 Nokia Corporation |
6 | * | 6 | * |
7 | * Written by Paul Walmsley | 7 | * Paul Walmsley |
8 | * Testing and integration fixes by Jouni Högander | 8 | * Jouni Högander |
9 | * | 9 | * |
10 | * Parts of this code are based on code written by | 10 | * Parts of this code are based on code written by |
11 | * Richard Woodruff, Tony Lindgren, Tuukka Tikkanen, Karthik Dasu | 11 | * Richard Woodruff, Tony Lindgren, Tuukka Tikkanen, Karthik Dasu |
@@ -16,27 +16,17 @@ | |||
16 | */ | 16 | */ |
17 | #undef DEBUG | 17 | #undef DEBUG |
18 | 18 | ||
19 | #include <linux/module.h> | ||
20 | #include <linux/kernel.h> | 19 | #include <linux/kernel.h> |
21 | #include <linux/device.h> | ||
22 | #include <linux/list.h> | ||
23 | #include <linux/errno.h> | 20 | #include <linux/errno.h> |
24 | #include <linux/delay.h> | 21 | #include <linux/delay.h> |
25 | #include <linux/clk.h> | 22 | #include <linux/clk.h> |
26 | #include <linux/io.h> | 23 | #include <linux/io.h> |
27 | #include <linux/limits.h> | ||
28 | #include <linux/bitops.h> | ||
29 | 24 | ||
30 | #include <plat/cpu.h> | 25 | #include <plat/cpu.h> |
31 | #include <plat/clock.h> | 26 | #include <plat/clock.h> |
32 | #include <plat/sram.h> | ||
33 | #include <plat/sdrc.h> | ||
34 | #include <asm/div64.h> | ||
35 | #include <asm/clkdev.h> | ||
36 | 27 | ||
37 | #include "clock.h" | 28 | #include "clock.h" |
38 | #include "clock34xx.h" | 29 | #include "clock34xx.h" |
39 | #include "sdrc.h" | ||
40 | #include "prm.h" | 30 | #include "prm.h" |
41 | #include "prm-regbits-34xx.h" | 31 | #include "prm-regbits-34xx.h" |
42 | #include "cm.h" | 32 | #include "cm.h" |