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-s3c2440/mach-smdk2440.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-s3c2440/mach-smdk2440.c')
-rw-r--r-- | arch/arm/mach-s3c2440/mach-smdk2440.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/arm/mach-s3c2440/mach-smdk2440.c b/arch/arm/mach-s3c2440/mach-smdk2440.c index c17eb5b1f6b4..e167254e232e 100644 --- a/arch/arm/mach-s3c2440/mach-smdk2440.c +++ b/arch/arm/mach-s3c2440/mach-smdk2440.c | |||
@@ -174,23 +174,18 @@ static struct platform_device *smdk2440_devices[] __initdata = { | |||
174 | &s3c_device_iis, | 174 | &s3c_device_iis, |
175 | }; | 175 | }; |
176 | 176 | ||
177 | static struct s3c24xx_board smdk2440_board __initdata = { | ||
178 | .devices = smdk2440_devices, | ||
179 | .devices_count = ARRAY_SIZE(smdk2440_devices) | ||
180 | }; | ||
181 | |||
182 | static void __init smdk2440_map_io(void) | 177 | static void __init smdk2440_map_io(void) |
183 | { | 178 | { |
184 | s3c24xx_init_io(smdk2440_iodesc, ARRAY_SIZE(smdk2440_iodesc)); | 179 | s3c24xx_init_io(smdk2440_iodesc, ARRAY_SIZE(smdk2440_iodesc)); |
185 | s3c24xx_init_clocks(16934400); | 180 | s3c24xx_init_clocks(16934400); |
186 | s3c24xx_init_uarts(smdk2440_uartcfgs, ARRAY_SIZE(smdk2440_uartcfgs)); | 181 | s3c24xx_init_uarts(smdk2440_uartcfgs, ARRAY_SIZE(smdk2440_uartcfgs)); |
187 | s3c24xx_set_board(&smdk2440_board); | ||
188 | } | 182 | } |
189 | 183 | ||
190 | static void __init smdk2440_machine_init(void) | 184 | static void __init smdk2440_machine_init(void) |
191 | { | 185 | { |
192 | s3c24xx_fb_set_platdata(&smdk2440_lcd_cfg); | 186 | s3c24xx_fb_set_platdata(&smdk2440_lcd_cfg); |
193 | 187 | ||
188 | platform_add_devices(smdk2440_devices, ARRAY_SIZE(smdk2440_devices)); | ||
194 | smdk_machine_init(); | 189 | smdk_machine_init(); |
195 | } | 190 | } |
196 | 191 | ||