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-nexcoder.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-nexcoder.c')
-rw-r--r-- | arch/arm/mach-s3c2440/mach-nexcoder.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/arch/arm/mach-s3c2440/mach-nexcoder.c b/arch/arm/mach-s3c2440/mach-nexcoder.c index 6d551d88330b..5e61f2166c76 100644 --- a/arch/arm/mach-s3c2440/mach-nexcoder.c +++ b/arch/arm/mach-s3c2440/mach-nexcoder.c | |||
@@ -116,12 +116,6 @@ static struct platform_device *nexcoder_devices[] __initdata = { | |||
116 | &nexcoder_device_nor, | 116 | &nexcoder_device_nor, |
117 | }; | 117 | }; |
118 | 118 | ||
119 | static struct s3c24xx_board nexcoder_board __initdata = { | ||
120 | .devices = nexcoder_devices, | ||
121 | .devices_count = ARRAY_SIZE(nexcoder_devices), | ||
122 | }; | ||
123 | |||
124 | |||
125 | static void __init nexcoder_sensorboard_init(void) | 119 | static void __init nexcoder_sensorboard_init(void) |
126 | { | 120 | { |
127 | // Initialize SCCB bus | 121 | // Initialize SCCB bus |
@@ -142,10 +136,14 @@ static void __init nexcoder_map_io(void) | |||
142 | s3c24xx_init_io(nexcoder_iodesc, ARRAY_SIZE(nexcoder_iodesc)); | 136 | s3c24xx_init_io(nexcoder_iodesc, ARRAY_SIZE(nexcoder_iodesc)); |
143 | s3c24xx_init_clocks(0); | 137 | s3c24xx_init_clocks(0); |
144 | s3c24xx_init_uarts(nexcoder_uartcfgs, ARRAY_SIZE(nexcoder_uartcfgs)); | 138 | s3c24xx_init_uarts(nexcoder_uartcfgs, ARRAY_SIZE(nexcoder_uartcfgs)); |
145 | s3c24xx_set_board(&nexcoder_board); | 139 | |
146 | nexcoder_sensorboard_init(); | 140 | nexcoder_sensorboard_init(); |
147 | } | 141 | } |
148 | 142 | ||
143 | static void __init nexcoder_init(void) | ||
144 | { | ||
145 | platform_add_devices(nexcoder_devices, ARRAY_SIZE(nexcoder_devices)); | ||
146 | }; | ||
149 | 147 | ||
150 | MACHINE_START(NEXCODER_2440, "NexVision - Nexcoder 2440") | 148 | MACHINE_START(NEXCODER_2440, "NexVision - Nexcoder 2440") |
151 | /* Maintainer: Guillaume GOURAT <guillaume.gourat@nexvision.tv> */ | 149 | /* Maintainer: Guillaume GOURAT <guillaume.gourat@nexvision.tv> */ |
@@ -153,6 +151,7 @@ MACHINE_START(NEXCODER_2440, "NexVision - Nexcoder 2440") | |||
153 | .io_pg_offst = (((u32)S3C24XX_VA_UART) >> 18) & 0xfffc, | 151 | .io_pg_offst = (((u32)S3C24XX_VA_UART) >> 18) & 0xfffc, |
154 | .boot_params = S3C2410_SDRAM_PA + 0x100, | 152 | .boot_params = S3C2410_SDRAM_PA + 0x100, |
155 | .map_io = nexcoder_map_io, | 153 | .map_io = nexcoder_map_io, |
154 | .init_machine = nexcoder_init, | ||
156 | .init_irq = s3c24xx_init_irq, | 155 | .init_irq = s3c24xx_init_irq, |
157 | .timer = &s3c24xx_timer, | 156 | .timer = &s3c24xx_timer, |
158 | MACHINE_END | 157 | MACHINE_END |