OMAP2/3 clock: combine clkdm, clkdm_name into union in struct clk
authorPaul Walmsley <paul@pwsan.com>
Fri, 18 Jul 2008 08:22:54 +0000 (02:22 -0600)
committerTony Lindgren <tony@atomide.com>
Tue, 5 Aug 2008 13:27:38 +0000 (16:27 +0300)
commit0e5194e1a84c219bebbb78f305b7a8eabc4a3656
tree74b4ff87cbebd322b0bcfd9f2a42f7c5817452e6
parent718fc6cd4db902aa2242a736cc3feb8744a4c71a
OMAP2/3 clock: combine clkdm, clkdm_name into union in struct clk

struct clk contains a struct clockdomain *clkdm and const char
*clkdm_name.  The clkdm_name is only used at initialization to look up
the appropriate clkdm pointer.  Combining these into a union saves
about 850 bytes on 3430SDP.  This patch should not cause any change in
kernel function.

Boot-tested on 3430SDP ES2; compile-tested with n800_defconfig.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
size:
   text    data     bss     dec     hex filename
3391555  157032  107136 3655723  37c82b vmlinux.3430sdp.orig
3391555  156176  107136 3654867  37c4d3 vmlinux.3430sdp
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/clock.c
arch/arm/mach-omap2/clock24xx.h
arch/arm/mach-omap2/clock34xx.h
include/asm-arm/arch-omap/clock.h