diff options
author | Santosh Shilimkar <santosh.shilimkar@ti.com> | 2009-05-25 14:26:48 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2009-05-25 14:26:48 -0400 |
commit | 8f9ccfeeb2cecb54dd093119291ab271ab0fd94a (patch) | |
tree | 8e1b3508566e60bbd4b4d55f336c720e8fe55a1a /arch/arm/plat-omap/common.c | |
parent | da7a0649bc8f3f65a01cb14e8b5c97e2ff40098a (diff) |
ARM: OMAP: Remove unnecessary omap2_globals.
This patch removes unnecessary omap2_globals and pass the global structures
directly as function argument.
The proposed cleanup was suggested by Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/plat-omap/common.c')
-rw-r--r-- | arch/arm/plat-omap/common.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/arch/arm/plat-omap/common.c b/arch/arm/plat-omap/common.c index e1add789835f..70b68ef83201 100644 --- a/arch/arm/plat-omap/common.c +++ b/arch/arm/plat-omap/common.c | |||
@@ -287,9 +287,7 @@ arch_initcall(omap_init_clocksource_32k); | |||
287 | 287 | ||
288 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) | 288 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) |
289 | 289 | ||
290 | static struct omap_globals *omap2_globals; | 290 | static void __init __omap2_set_globals(struct omap_globals *omap2_globals) |
291 | |||
292 | static void __init __omap2_set_globals(void) | ||
293 | { | 291 | { |
294 | omap2_set_globals_tap(omap2_globals); | 292 | omap2_set_globals_tap(omap2_globals); |
295 | omap2_set_globals_sdrc(omap2_globals); | 293 | omap2_set_globals_sdrc(omap2_globals); |
@@ -313,8 +311,7 @@ static struct omap_globals omap242x_globals = { | |||
313 | 311 | ||
314 | void __init omap2_set_globals_242x(void) | 312 | void __init omap2_set_globals_242x(void) |
315 | { | 313 | { |
316 | omap2_globals = &omap242x_globals; | 314 | __omap2_set_globals(&omap242x_globals); |
317 | __omap2_set_globals(); | ||
318 | } | 315 | } |
319 | #endif | 316 | #endif |
320 | 317 | ||
@@ -332,8 +329,7 @@ static struct omap_globals omap243x_globals = { | |||
332 | 329 | ||
333 | void __init omap2_set_globals_243x(void) | 330 | void __init omap2_set_globals_243x(void) |
334 | { | 331 | { |
335 | omap2_globals = &omap243x_globals; | 332 | __omap2_set_globals(&omap243x_globals); |
336 | __omap2_set_globals(); | ||
337 | } | 333 | } |
338 | #endif | 334 | #endif |
339 | 335 | ||
@@ -351,8 +347,7 @@ static struct omap_globals omap343x_globals = { | |||
351 | 347 | ||
352 | void __init omap2_set_globals_343x(void) | 348 | void __init omap2_set_globals_343x(void) |
353 | { | 349 | { |
354 | omap2_globals = &omap343x_globals; | 350 | __omap2_set_globals(&omap343x_globals); |
355 | __omap2_set_globals(); | ||
356 | } | 351 | } |
357 | #endif | 352 | #endif |
358 | 353 | ||