diff options
author | Paul Gortmaker <paul.gortmaker@windriver.com> | 2008-04-16 13:53:06 -0400 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2008-04-17 10:51:29 -0400 |
commit | 06f35b4ba658ec9a447a5406a574258aaab1ba8d (patch) | |
tree | 3f601b9482c59102d7917d2488b6a0515f49d0cc | |
parent | 3a2f020c5a93a88aa09adbe56dde43463324930a (diff) |
[POWERPC] 86xx: mark functions static, other minor cleanups
Cleanups as suggested by Stephen Rothwell and Dale Farnsworth, which
incudes marking a bunch of functions static and add a vendor prefix to
the compat node check for uniqueness.
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
-rw-r--r-- | arch/powerpc/boot/dts/mpc8641_hpcn.dts | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/86xx/mpc8610_hpcd.c | 4 | ||||
-rw-r--r-- | arch/powerpc/platforms/86xx/mpc86xx_hpcn.c | 8 |
3 files changed, 7 insertions, 7 deletions
diff --git a/arch/powerpc/boot/dts/mpc8641_hpcn.dts b/arch/powerpc/boot/dts/mpc8641_hpcn.dts index 79385bcd5c5f..7f9b999843ce 100644 --- a/arch/powerpc/boot/dts/mpc8641_hpcn.dts +++ b/arch/powerpc/boot/dts/mpc8641_hpcn.dts | |||
@@ -13,7 +13,7 @@ | |||
13 | 13 | ||
14 | / { | 14 | / { |
15 | model = "MPC8641HPCN"; | 15 | model = "MPC8641HPCN"; |
16 | compatible = "mpc86xx"; | 16 | compatible = "fsl,mpc8641hpcn"; |
17 | #address-cells = <1>; | 17 | #address-cells = <1>; |
18 | #size-cells = <1>; | 18 | #size-cells = <1>; |
19 | 19 | ||
diff --git a/arch/powerpc/platforms/86xx/mpc8610_hpcd.c b/arch/powerpc/platforms/86xx/mpc8610_hpcd.c index 0b07485641fe..18b8ebe930d5 100644 --- a/arch/powerpc/platforms/86xx/mpc8610_hpcd.c +++ b/arch/powerpc/platforms/86xx/mpc8610_hpcd.c | |||
@@ -52,7 +52,7 @@ static int __init mpc8610_declare_of_platform_devices(void) | |||
52 | } | 52 | } |
53 | machine_device_initcall(mpc86xx_hpcd, mpc8610_declare_of_platform_devices); | 53 | machine_device_initcall(mpc86xx_hpcd, mpc8610_declare_of_platform_devices); |
54 | 54 | ||
55 | void __init | 55 | static void __init |
56 | mpc86xx_hpcd_init_irq(void) | 56 | mpc86xx_hpcd_init_irq(void) |
57 | { | 57 | { |
58 | struct mpic *mpic1; | 58 | struct mpic *mpic1; |
@@ -200,7 +200,7 @@ static int __init mpc86xx_hpcd_probe(void) | |||
200 | return 0; | 200 | return 0; |
201 | } | 201 | } |
202 | 202 | ||
203 | long __init | 203 | static long __init |
204 | mpc86xx_time_init(void) | 204 | mpc86xx_time_init(void) |
205 | { | 205 | { |
206 | unsigned int temp; | 206 | unsigned int temp; |
diff --git a/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c b/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c index cfbe8c52e263..0764032e85aa 100644 --- a/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c +++ b/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c | |||
@@ -55,7 +55,7 @@ static void mpc86xx_8259_cascade(unsigned int irq, struct irq_desc *desc) | |||
55 | } | 55 | } |
56 | #endif /* CONFIG_PCI */ | 56 | #endif /* CONFIG_PCI */ |
57 | 57 | ||
58 | void __init | 58 | static void __init |
59 | mpc86xx_hpcn_init_irq(void) | 59 | mpc86xx_hpcn_init_irq(void) |
60 | { | 60 | { |
61 | struct mpic *mpic1; | 61 | struct mpic *mpic1; |
@@ -162,7 +162,7 @@ mpc86xx_hpcn_setup_arch(void) | |||
162 | } | 162 | } |
163 | 163 | ||
164 | 164 | ||
165 | void | 165 | static void |
166 | mpc86xx_hpcn_show_cpuinfo(struct seq_file *m) | 166 | mpc86xx_hpcn_show_cpuinfo(struct seq_file *m) |
167 | { | 167 | { |
168 | struct device_node *root; | 168 | struct device_node *root; |
@@ -190,13 +190,13 @@ static int __init mpc86xx_hpcn_probe(void) | |||
190 | { | 190 | { |
191 | unsigned long root = of_get_flat_dt_root(); | 191 | unsigned long root = of_get_flat_dt_root(); |
192 | 192 | ||
193 | if (of_flat_dt_is_compatible(root, "mpc86xx")) | 193 | if (of_flat_dt_is_compatible(root, "fsl,mpc8641hpcn")) |
194 | return 1; /* Looks good */ | 194 | return 1; /* Looks good */ |
195 | 195 | ||
196 | return 0; | 196 | return 0; |
197 | } | 197 | } |
198 | 198 | ||
199 | long __init | 199 | static long __init |
200 | mpc86xx_time_init(void) | 200 | mpc86xx_time_init(void) |
201 | { | 201 | { |
202 | unsigned int temp; | 202 | unsigned int temp; |