diff options
author | Ben Dooks <ben-linux@fluff.org> | 2007-04-20 06:19:16 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2007-04-21 15:53:19 -0400 |
commit | 57e5171c9ff817d56344d8473e484d6870ae2bf3 (patch) | |
tree | 0c1f0259d0ac0714be0b5bd5600edfcc5cbac717 /arch/arm/mach-s3c2410/mach-h1940.c | |
parent | ce89c206ac03dfec700cfa538dcbcc347c0683ce (diff) |
[ARM] 4325/1: S3C24XX: remove s3c24xx_board
Remove the use of struct s3c24xx_board as
this is just as easily done by using the
platform device registration functions to
make the initialisation sequence easier.
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-s3c2410/mach-h1940.c')
-rw-r--r-- | arch/arm/mach-s3c2410/mach-h1940.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/arch/arm/mach-s3c2410/mach-h1940.c b/arch/arm/mach-s3c2410/mach-h1940.c index d052ab2d9377..5d5f00e9c462 100644 --- a/arch/arm/mach-s3c2410/mach-h1940.c +++ b/arch/arm/mach-s3c2410/mach-h1940.c | |||
@@ -129,7 +129,6 @@ static struct s3c2410_udc_mach_info h1940_udc_cfg __initdata = { | |||
129 | }; | 129 | }; |
130 | 130 | ||
131 | 131 | ||
132 | |||
133 | /** | 132 | /** |
134 | * Set lcd on or off | 133 | * Set lcd on or off |
135 | **/ | 134 | **/ |
@@ -188,17 +187,11 @@ static struct platform_device *h1940_devices[] __initdata = { | |||
188 | &s3c_device_leds, | 187 | &s3c_device_leds, |
189 | }; | 188 | }; |
190 | 189 | ||
191 | static struct s3c24xx_board h1940_board __initdata = { | ||
192 | .devices = h1940_devices, | ||
193 | .devices_count = ARRAY_SIZE(h1940_devices) | ||
194 | }; | ||
195 | |||
196 | static void __init h1940_map_io(void) | 190 | static void __init h1940_map_io(void) |
197 | { | 191 | { |
198 | s3c24xx_init_io(h1940_iodesc, ARRAY_SIZE(h1940_iodesc)); | 192 | s3c24xx_init_io(h1940_iodesc, ARRAY_SIZE(h1940_iodesc)); |
199 | s3c24xx_init_clocks(0); | 193 | s3c24xx_init_clocks(0); |
200 | s3c24xx_init_uarts(h1940_uartcfgs, ARRAY_SIZE(h1940_uartcfgs)); | 194 | s3c24xx_init_uarts(h1940_uartcfgs, ARRAY_SIZE(h1940_uartcfgs)); |
201 | s3c24xx_set_board(&h1940_board); | ||
202 | 195 | ||
203 | /* setup PM */ | 196 | /* setup PM */ |
204 | 197 | ||
@@ -232,6 +225,8 @@ static void __init h1940_init(void) | |||
232 | | (0x02 << S3C2410_PLLCON_PDIVSHIFT) | 225 | | (0x02 << S3C2410_PLLCON_PDIVSHIFT) |
233 | | (0x03 << S3C2410_PLLCON_SDIVSHIFT); | 226 | | (0x03 << S3C2410_PLLCON_SDIVSHIFT); |
234 | writel(tmp, S3C2410_UPLLCON); | 227 | writel(tmp, S3C2410_UPLLCON); |
228 | |||
229 | platform_add_devices(h1940_devices, ARRAY_SIZE(h1940_devices)); | ||
235 | } | 230 | } |
236 | 231 | ||
237 | MACHINE_START(H1940, "IPAQ-H1940") | 232 | MACHINE_START(H1940, "IPAQ-H1940") |