diff options
| -rw-r--r-- | arch/arm/mach-s3c2410/mach-amlm5900.c | 7 | ||||
| -rw-r--r-- | arch/arm/mach-s3c2410/mach-bast.c | 8 | ||||
| -rw-r--r-- | arch/arm/mach-s3c2410/mach-h1940.c | 9 | ||||
| -rw-r--r-- | arch/arm/mach-s3c2410/mach-n30.c | 8 | ||||
| -rw-r--r-- | arch/arm/mach-s3c2410/mach-otom.c | 12 | ||||
| -rw-r--r-- | arch/arm/mach-s3c2410/mach-qt2410.c | 7 | ||||
| -rw-r--r-- | arch/arm/mach-s3c2410/mach-smdk2410.c | 14 | ||||
| -rw-r--r-- | arch/arm/mach-s3c2410/mach-vr1000.c | 12 | ||||
| -rw-r--r-- | arch/arm/mach-s3c2412/mach-smdk2413.c | 7 | ||||
| -rw-r--r-- | arch/arm/mach-s3c2412/mach-vstms.c | 12 | ||||
| -rw-r--r-- | arch/arm/mach-s3c2440/mach-anubis.c | 13 | ||||
| -rw-r--r-- | arch/arm/mach-s3c2440/mach-nexcoder.c | 13 | ||||
| -rw-r--r-- | arch/arm/mach-s3c2440/mach-osiris.c | 12 | ||||
| -rw-r--r-- | arch/arm/mach-s3c2440/mach-rx3715.c | 8 | ||||
| -rw-r--r-- | arch/arm/mach-s3c2440/mach-smdk2440.c | 7 | ||||
| -rw-r--r-- | arch/arm/mach-s3c2443/mach-smdk2443.c | 7 | ||||
| -rw-r--r-- | arch/arm/plat-s3c24xx/cpu.c | 29 | ||||
| -rw-r--r-- | include/asm-arm/plat-s3c24xx/cpu.h | 13 |
18 files changed, 54 insertions, 144 deletions
diff --git a/arch/arm/mach-s3c2410/mach-amlm5900.c b/arch/arm/mach-s3c2410/mach-amlm5900.c index 72f2cc4fcd03..bc308ceb91c3 100644 --- a/arch/arm/mach-s3c2410/mach-amlm5900.c +++ b/arch/arm/mach-s3c2410/mach-amlm5900.c | |||
| @@ -160,17 +160,11 @@ static struct platform_device *amlm5900_devices[] __initdata = { | |||
| 160 | #endif | 160 | #endif |
| 161 | }; | 161 | }; |
| 162 | 162 | ||
| 163 | static struct s3c24xx_board amlm5900_board __initdata = { | ||
| 164 | .devices = amlm5900_devices, | ||
| 165 | .devices_count = ARRAY_SIZE(amlm5900_devices) | ||
| 166 | }; | ||
| 167 | |||
| 168 | void __init amlm5900_map_io(void) | 163 | void __init amlm5900_map_io(void) |
| 169 | { | 164 | { |
| 170 | s3c24xx_init_io(amlm5900_iodesc, ARRAY_SIZE(amlm5900_iodesc)); | 165 | s3c24xx_init_io(amlm5900_iodesc, ARRAY_SIZE(amlm5900_iodesc)); |
| 171 | s3c24xx_init_clocks(0); | 166 | s3c24xx_init_clocks(0); |
| 172 | s3c24xx_init_uarts(amlm5900_uartcfgs, ARRAY_SIZE(amlm5900_uartcfgs)); | 167 | s3c24xx_init_uarts(amlm5900_uartcfgs, ARRAY_SIZE(amlm5900_uartcfgs)); |
| 173 | s3c24xx_set_board(&amlm5900_board); | ||
| 174 | } | 168 | } |
| 175 | 169 | ||
| 176 | #ifdef CONFIG_FB_S3C2410 | 170 | #ifdef CONFIG_FB_S3C2410 |
| @@ -247,6 +241,7 @@ static void __init amlm5900_init(void) | |||
| 247 | #ifdef CONFIG_FB_S3C2410 | 241 | #ifdef CONFIG_FB_S3C2410 |
| 248 | s3c24xx_fb_set_platdata(&amlm5900_lcd_info); | 242 | s3c24xx_fb_set_platdata(&amlm5900_lcd_info); |
| 249 | #endif | 243 | #endif |
| 244 | platform_add_devices(amlm5900_devices, ARRAY_SIZE(amlm5900_devices)); | ||
| 250 | } | 245 | } |
| 251 | 246 | ||
| 252 | MACHINE_START(AML_M5900, "AML_M5900") | 247 | MACHINE_START(AML_M5900, "AML_M5900") |
diff --git a/arch/arm/mach-s3c2410/mach-bast.c b/arch/arm/mach-s3c2410/mach-bast.c index 0bb2e8b2dd28..f01de807b72f 100644 --- a/arch/arm/mach-s3c2410/mach-bast.c +++ b/arch/arm/mach-s3c2410/mach-bast.c | |||
| @@ -464,11 +464,6 @@ static struct clk *bast_clocks[] = { | |||
| 464 | &s3c24xx_uclk, | 464 | &s3c24xx_uclk, |
| 465 | }; | 465 | }; |
| 466 | 466 | ||
| 467 | static struct s3c24xx_board bast_board __initdata = { | ||
| 468 | .devices = bast_devices, | ||
| 469 | .devices_count = ARRAY_SIZE(bast_devices), | ||
| 470 | }; | ||
| 471 | |||
| 472 | static void __init bast_map_io(void) | 467 | static void __init bast_map_io(void) |
| 473 | { | 468 | { |
| 474 | /* initialise the clocks */ | 469 | /* initialise the clocks */ |
| @@ -492,13 +487,14 @@ static void __init bast_map_io(void) | |||
| 492 | s3c24xx_init_io(bast_iodesc, ARRAY_SIZE(bast_iodesc)); | 487 | s3c24xx_init_io(bast_iodesc, ARRAY_SIZE(bast_iodesc)); |
| 493 | s3c24xx_init_clocks(0); | 488 | s3c24xx_init_clocks(0); |
| 494 | s3c24xx_init_uarts(bast_uartcfgs, ARRAY_SIZE(bast_uartcfgs)); | 489 | s3c24xx_init_uarts(bast_uartcfgs, ARRAY_SIZE(bast_uartcfgs)); |
| 495 | s3c24xx_set_board(&bast_board); | 490 | |
| 496 | usb_simtec_init(); | 491 | usb_simtec_init(); |
| 497 | } | 492 | } |
| 498 | 493 | ||
| 499 | static void __init bast_init(void) | 494 | static void __init bast_init(void) |
| 500 | { | 495 | { |
| 501 | s3c24xx_fb_set_platdata(&bast_lcd_info); | 496 | s3c24xx_fb_set_platdata(&bast_lcd_info); |
| 497 | platform_add_devices(bast_devices, ARRAY_SIZE(bast_devices)); | ||
| 502 | } | 498 | } |
| 503 | 499 | ||
| 504 | MACHINE_START(BAST, "Simtec-BAST") | 500 | MACHINE_START(BAST, "Simtec-BAST") |
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") |
diff --git a/arch/arm/mach-s3c2410/mach-n30.c b/arch/arm/mach-s3c2410/mach-n30.c index 261aa4cc0770..412e50c3d28a 100644 --- a/arch/arm/mach-s3c2410/mach-n30.c +++ b/arch/arm/mach-s3c2410/mach-n30.c | |||
| @@ -90,17 +90,11 @@ static struct s3c2410_platform_i2c n30_i2ccfg = { | |||
| 90 | .max_freq = 10*1000, | 90 | .max_freq = 10*1000, |
| 91 | }; | 91 | }; |
| 92 | 92 | ||
| 93 | static struct s3c24xx_board n30_board __initdata = { | ||
| 94 | .devices = n30_devices, | ||
| 95 | .devices_count = ARRAY_SIZE(n30_devices) | ||
| 96 | }; | ||
| 97 | |||
| 98 | static void __init n30_map_io(void) | 93 | static void __init n30_map_io(void) |
| 99 | { | 94 | { |
| 100 | s3c24xx_init_io(n30_iodesc, ARRAY_SIZE(n30_iodesc)); | 95 | s3c24xx_init_io(n30_iodesc, ARRAY_SIZE(n30_iodesc)); |
| 101 | s3c24xx_init_clocks(0); | 96 | s3c24xx_init_clocks(0); |
| 102 | s3c24xx_init_uarts(n30_uartcfgs, ARRAY_SIZE(n30_uartcfgs)); | 97 | s3c24xx_init_uarts(n30_uartcfgs, ARRAY_SIZE(n30_uartcfgs)); |
| 103 | s3c24xx_set_board(&n30_board); | ||
| 104 | } | 98 | } |
| 105 | 99 | ||
| 106 | static void __init n30_init_irq(void) | 100 | static void __init n30_init_irq(void) |
| @@ -120,6 +114,8 @@ static void __init n30_init(void) | |||
| 120 | s3c2410_modify_misccr(S3C2410_MISCCR_USBHOST | | 114 | s3c2410_modify_misccr(S3C2410_MISCCR_USBHOST | |
| 121 | S3C2410_MISCCR_USBSUSPND0 | | 115 | S3C2410_MISCCR_USBSUSPND0 | |
| 122 | S3C2410_MISCCR_USBSUSPND1, 0x0); | 116 | S3C2410_MISCCR_USBSUSPND1, 0x0); |
| 117 | |||
| 118 | platform_add_devices(n30_devices, ARRAY_SIZE(n30_devices)); | ||
| 123 | } | 119 | } |
| 124 | 120 | ||
| 125 | MACHINE_START(N30, "Acer-N30") | 121 | MACHINE_START(N30, "Acer-N30") |
diff --git a/arch/arm/mach-s3c2410/mach-otom.c b/arch/arm/mach-s3c2410/mach-otom.c index c78ab75b44f3..1f899fa588df 100644 --- a/arch/arm/mach-s3c2410/mach-otom.c +++ b/arch/arm/mach-s3c2410/mach-otom.c | |||
| @@ -100,20 +100,17 @@ static struct platform_device *otom11_devices[] __initdata = { | |||
| 100 | &otom_device_nor, | 100 | &otom_device_nor, |
| 101 | }; | 101 | }; |
| 102 | 102 | ||
| 103 | static struct s3c24xx_board otom11_board __initdata = { | ||
| 104 | .devices = otom11_devices, | ||
| 105 | .devices_count = ARRAY_SIZE(otom11_devices) | ||
| 106 | }; | ||
| 107 | |||
| 108 | |||
| 109 | static void __init otom11_map_io(void) | 103 | static void __init otom11_map_io(void) |
| 110 | { | 104 | { |
| 111 | s3c24xx_init_io(otom11_iodesc, ARRAY_SIZE(otom11_iodesc)); | 105 | s3c24xx_init_io(otom11_iodesc, ARRAY_SIZE(otom11_iodesc)); |
| 112 | s3c24xx_init_clocks(0); | 106 | s3c24xx_init_clocks(0); |
| 113 | s3c24xx_init_uarts(otom11_uartcfgs, ARRAY_SIZE(otom11_uartcfgs)); | 107 | s3c24xx_init_uarts(otom11_uartcfgs, ARRAY_SIZE(otom11_uartcfgs)); |
| 114 | s3c24xx_set_board(&otom11_board); | ||
| 115 | } | 108 | } |
| 116 | 109 | ||
| 110 | static void __init otom11_init(void) | ||
| 111 | { | ||
| 112 | platform_add_devices(otom11_devices, ARRAY_SIZE(otom11_devices)); | ||
| 113 | } | ||
| 117 | 114 | ||
| 118 | MACHINE_START(OTOM, "Nex Vision - Otom 1.1") | 115 | MACHINE_START(OTOM, "Nex Vision - Otom 1.1") |
| 119 | /* Maintainer: Guillaume GOURAT <guillaume.gourat@nexvision.tv> */ | 116 | /* Maintainer: Guillaume GOURAT <guillaume.gourat@nexvision.tv> */ |
| @@ -121,6 +118,7 @@ MACHINE_START(OTOM, "Nex Vision - Otom 1.1") | |||
| 121 | .io_pg_offst = (((u32)S3C24XX_VA_UART) >> 18) & 0xfffc, | 118 | .io_pg_offst = (((u32)S3C24XX_VA_UART) >> 18) & 0xfffc, |
| 122 | .boot_params = S3C2410_SDRAM_PA + 0x100, | 119 | .boot_params = S3C2410_SDRAM_PA + 0x100, |
| 123 | .map_io = otom11_map_io, | 120 | .map_io = otom11_map_io, |
| 121 | .init_machine = otom11_init, | ||
| 124 | .init_irq = s3c24xx_init_irq, | 122 | .init_irq = s3c24xx_init_irq, |
| 125 | .timer = &s3c24xx_timer, | 123 | .timer = &s3c24xx_timer, |
| 126 | MACHINE_END | 124 | MACHINE_END |
diff --git a/arch/arm/mach-s3c2410/mach-qt2410.c b/arch/arm/mach-s3c2410/mach-qt2410.c index c6a41593de21..caf6778472d3 100644 --- a/arch/arm/mach-s3c2410/mach-qt2410.c +++ b/arch/arm/mach-s3c2410/mach-qt2410.c | |||
| @@ -331,11 +331,6 @@ static struct platform_device *qt2410_devices[] __initdata = { | |||
| 331 | &qt2410_led, | 331 | &qt2410_led, |
| 332 | }; | 332 | }; |
| 333 | 333 | ||
| 334 | static struct s3c24xx_board qt2410_board __initdata = { | ||
| 335 | .devices = qt2410_devices, | ||
| 336 | .devices_count = ARRAY_SIZE(qt2410_devices) | ||
| 337 | }; | ||
| 338 | |||
| 339 | static struct mtd_partition qt2410_nand_part[] = { | 334 | static struct mtd_partition qt2410_nand_part[] = { |
| 340 | [0] = { | 335 | [0] = { |
| 341 | .name = "U-Boot", | 336 | .name = "U-Boot", |
| @@ -405,7 +400,6 @@ static void __init qt2410_map_io(void) | |||
| 405 | s3c24xx_init_io(qt2410_iodesc, ARRAY_SIZE(qt2410_iodesc)); | 400 | s3c24xx_init_io(qt2410_iodesc, ARRAY_SIZE(qt2410_iodesc)); |
| 406 | s3c24xx_init_clocks(12*1000*1000); | 401 | s3c24xx_init_clocks(12*1000*1000); |
| 407 | s3c24xx_init_uarts(smdk2410_uartcfgs, ARRAY_SIZE(smdk2410_uartcfgs)); | 402 | s3c24xx_init_uarts(smdk2410_uartcfgs, ARRAY_SIZE(smdk2410_uartcfgs)); |
| 408 | s3c24xx_set_board(&qt2410_board); | ||
| 409 | } | 403 | } |
| 410 | 404 | ||
| 411 | static void __init qt2410_machine_init(void) | 405 | static void __init qt2410_machine_init(void) |
| @@ -432,6 +426,7 @@ static void __init qt2410_machine_init(void) | |||
| 432 | 426 | ||
| 433 | s3c2410_gpio_cfgpin(S3C2410_GPB5, S3C2410_GPIO_OUTPUT); | 427 | s3c2410_gpio_cfgpin(S3C2410_GPB5, S3C2410_GPIO_OUTPUT); |
| 434 | 428 | ||
| 429 | platform_add_devices(qt2410_devices, ARRAY_SIZE(qt2410_devices)); | ||
| 435 | s3c2410_pm_init(); | 430 | s3c2410_pm_init(); |
| 436 | } | 431 | } |
| 437 | 432 | ||
diff --git a/arch/arm/mach-s3c2410/mach-smdk2410.c b/arch/arm/mach-s3c2410/mach-smdk2410.c index 57b8a80f33d0..5852d300d52f 100644 --- a/arch/arm/mach-s3c2410/mach-smdk2410.c +++ b/arch/arm/mach-s3c2410/mach-smdk2410.c | |||
| @@ -94,17 +94,17 @@ static struct platform_device *smdk2410_devices[] __initdata = { | |||
| 94 | &s3c_device_iis, | 94 | &s3c_device_iis, |
| 95 | }; | 95 | }; |
| 96 | 96 | ||
| 97 | static struct s3c24xx_board smdk2410_board __initdata = { | ||
| 98 | .devices = smdk2410_devices, | ||
| 99 | .devices_count = ARRAY_SIZE(smdk2410_devices) | ||
| 100 | }; | ||
| 101 | |||
| 102 | static void __init smdk2410_map_io(void) | 97 | static void __init smdk2410_map_io(void) |
| 103 | { | 98 | { |
| 104 | s3c24xx_init_io(smdk2410_iodesc, ARRAY_SIZE(smdk2410_iodesc)); | 99 | s3c24xx_init_io(smdk2410_iodesc, ARRAY_SIZE(smdk2410_iodesc)); |
| 105 | s3c24xx_init_clocks(0); | 100 | s3c24xx_init_clocks(0); |
| 106 | s3c24xx_init_uarts(smdk2410_uartcfgs, ARRAY_SIZE(smdk2410_uartcfgs)); | 101 | s3c24xx_init_uarts(smdk2410_uartcfgs, ARRAY_SIZE(smdk2410_uartcfgs)); |
| 107 | s3c24xx_set_board(&smdk2410_board); | 102 | } |
| 103 | |||
| 104 | static void __init smdk2410_init(void) | ||
| 105 | { | ||
| 106 | platform_add_devices(smdk2410_devices, ARRAY_SIZE(smdk2410_devices)); | ||
| 107 | smdk_machine_init(); | ||
| 108 | } | 108 | } |
| 109 | 109 | ||
| 110 | MACHINE_START(SMDK2410, "SMDK2410") /* @TODO: request a new identifier and switch | 110 | MACHINE_START(SMDK2410, "SMDK2410") /* @TODO: request a new identifier and switch |
| @@ -115,7 +115,7 @@ MACHINE_START(SMDK2410, "SMDK2410") /* @TODO: request a new identifier and switc | |||
| 115 | .boot_params = S3C2410_SDRAM_PA + 0x100, | 115 | .boot_params = S3C2410_SDRAM_PA + 0x100, |
| 116 | .map_io = smdk2410_map_io, | 116 | .map_io = smdk2410_map_io, |
| 117 | .init_irq = s3c24xx_init_irq, | 117 | .init_irq = s3c24xx_init_irq, |
| 118 | .init_machine = smdk_machine_init, | 118 | .init_machine = smdk2410_init, |
| 119 | .timer = &s3c24xx_timer, | 119 | .timer = &s3c24xx_timer, |
| 120 | MACHINE_END | 120 | MACHINE_END |
| 121 | 121 | ||
diff --git a/arch/arm/mach-s3c2410/mach-vr1000.c b/arch/arm/mach-s3c2410/mach-vr1000.c index 9380a1360890..7b624bb00490 100644 --- a/arch/arm/mach-s3c2410/mach-vr1000.c +++ b/arch/arm/mach-s3c2410/mach-vr1000.c | |||
| @@ -384,11 +384,6 @@ static struct clk *vr1000_clocks[] = { | |||
| 384 | &s3c24xx_uclk, | 384 | &s3c24xx_uclk, |
| 385 | }; | 385 | }; |
| 386 | 386 | ||
| 387 | static struct s3c24xx_board vr1000_board __initdata = { | ||
| 388 | .devices = vr1000_devices, | ||
| 389 | .devices_count = ARRAY_SIZE(vr1000_devices), | ||
| 390 | }; | ||
| 391 | |||
| 392 | static void vr1000_power_off(void) | 387 | static void vr1000_power_off(void) |
| 393 | { | 388 | { |
| 394 | s3c2410_gpio_cfgpin(S3C2410_GPB9, S3C2410_GPB9_OUTP); | 389 | s3c2410_gpio_cfgpin(S3C2410_GPB9, S3C2410_GPB9_OUTP); |
| @@ -417,10 +412,12 @@ static void __init vr1000_map_io(void) | |||
| 417 | s3c24xx_init_io(vr1000_iodesc, ARRAY_SIZE(vr1000_iodesc)); | 412 | s3c24xx_init_io(vr1000_iodesc, ARRAY_SIZE(vr1000_iodesc)); |
| 418 | s3c24xx_init_clocks(0); | 413 | s3c24xx_init_clocks(0); |
| 419 | s3c24xx_init_uarts(vr1000_uartcfgs, ARRAY_SIZE(vr1000_uartcfgs)); | 414 | s3c24xx_init_uarts(vr1000_uartcfgs, ARRAY_SIZE(vr1000_uartcfgs)); |
| 420 | s3c24xx_set_board(&vr1000_board); | ||
| 421 | usb_simtec_init(); | ||
| 422 | } | 415 | } |
| 423 | 416 | ||
| 417 | static void __init vr1000_init(void) | ||
| 418 | { | ||
| 419 | platform_add_devices(vr1000_devices, ARRAY_SIZE(vr1000_devices)); | ||
| 420 | } | ||
| 424 | 421 | ||
| 425 | MACHINE_START(VR1000, "Thorcom-VR1000") | 422 | MACHINE_START(VR1000, "Thorcom-VR1000") |
| 426 | /* Maintainer: Ben Dooks <ben@simtec.co.uk> */ | 423 | /* Maintainer: Ben Dooks <ben@simtec.co.uk> */ |
| @@ -428,6 +425,7 @@ MACHINE_START(VR1000, "Thorcom-VR1000") | |||
| 428 | .io_pg_offst = (((u32)S3C24XX_VA_UART) >> 18) & 0xfffc, | 425 | .io_pg_offst = (((u32)S3C24XX_VA_UART) >> 18) & 0xfffc, |
| 429 | .boot_params = S3C2410_SDRAM_PA + 0x100, | 426 | .boot_params = S3C2410_SDRAM_PA + 0x100, |
| 430 | .map_io = vr1000_map_io, | 427 | .map_io = vr1000_map_io, |
| 428 | .init_machine = vr1000_init, | ||
| 431 | .init_irq = s3c24xx_init_irq, | 429 | .init_irq = s3c24xx_init_irq, |
| 432 | .timer = &s3c24xx_timer, | 430 | .timer = &s3c24xx_timer, |
| 433 | MACHINE_END | 431 | MACHINE_END |
diff --git a/arch/arm/mach-s3c2412/mach-smdk2413.c b/arch/arm/mach-s3c2412/mach-smdk2413.c index b5befce6c8d3..063af09f899d 100644 --- a/arch/arm/mach-s3c2412/mach-smdk2413.c +++ b/arch/arm/mach-s3c2412/mach-smdk2413.c | |||
| @@ -110,11 +110,6 @@ static struct platform_device *smdk2413_devices[] __initdata = { | |||
| 110 | &s3c_device_usbgadget, | 110 | &s3c_device_usbgadget, |
| 111 | }; | 111 | }; |
| 112 | 112 | ||
| 113 | static struct s3c24xx_board smdk2413_board __initdata = { | ||
| 114 | .devices = smdk2413_devices, | ||
| 115 | .devices_count = ARRAY_SIZE(smdk2413_devices) | ||
| 116 | }; | ||
| 117 | |||
| 118 | static void __init smdk2413_fixup(struct machine_desc *desc, | 113 | static void __init smdk2413_fixup(struct machine_desc *desc, |
| 119 | struct tag *tags, char **cmdline, | 114 | struct tag *tags, char **cmdline, |
| 120 | struct meminfo *mi) | 115 | struct meminfo *mi) |
| @@ -132,7 +127,6 @@ static void __init smdk2413_map_io(void) | |||
| 132 | s3c24xx_init_io(smdk2413_iodesc, ARRAY_SIZE(smdk2413_iodesc)); | 127 | s3c24xx_init_io(smdk2413_iodesc, ARRAY_SIZE(smdk2413_iodesc)); |
| 133 | s3c24xx_init_clocks(12000000); | 128 | s3c24xx_init_clocks(12000000); |
| 134 | s3c24xx_init_uarts(smdk2413_uartcfgs, ARRAY_SIZE(smdk2413_uartcfgs)); | 129 | s3c24xx_init_uarts(smdk2413_uartcfgs, ARRAY_SIZE(smdk2413_uartcfgs)); |
| 135 | s3c24xx_set_board(&smdk2413_board); | ||
| 136 | } | 130 | } |
| 137 | 131 | ||
| 138 | static void __init smdk2413_machine_init(void) | 132 | static void __init smdk2413_machine_init(void) |
| @@ -149,6 +143,7 @@ static void __init smdk2413_machine_init(void) | |||
| 149 | 143 | ||
| 150 | s3c24xx_udc_set_platdata(&smdk2413_udc_cfg); | 144 | s3c24xx_udc_set_platdata(&smdk2413_udc_cfg); |
| 151 | 145 | ||
| 146 | platform_add_devices(smdk2413_devices, ARRAY_SIZE(smdk2413_devices)); | ||
| 152 | smdk_machine_init(); | 147 | smdk_machine_init(); |
| 153 | } | 148 | } |
| 154 | 149 | ||
diff --git a/arch/arm/mach-s3c2412/mach-vstms.c b/arch/arm/mach-s3c2412/mach-vstms.c index 4231b549d797..f2fbd65956ac 100644 --- a/arch/arm/mach-s3c2412/mach-vstms.c +++ b/arch/arm/mach-s3c2412/mach-vstms.c | |||
| @@ -129,11 +129,6 @@ static struct platform_device *vstms_devices[] __initdata = { | |||
| 129 | &s3c_device_nand, | 129 | &s3c_device_nand, |
| 130 | }; | 130 | }; |
| 131 | 131 | ||
| 132 | static struct s3c24xx_board vstms_board __initdata = { | ||
| 133 | .devices = vstms_devices, | ||
| 134 | .devices_count = ARRAY_SIZE(vstms_devices) | ||
| 135 | }; | ||
| 136 | |||
| 137 | static void __init vstms_fixup(struct machine_desc *desc, | 132 | static void __init vstms_fixup(struct machine_desc *desc, |
| 138 | struct tag *tags, char **cmdline, | 133 | struct tag *tags, char **cmdline, |
| 139 | struct meminfo *mi) | 134 | struct meminfo *mi) |
| @@ -153,7 +148,11 @@ static void __init vstms_map_io(void) | |||
| 153 | s3c24xx_init_io(vstms_iodesc, ARRAY_SIZE(vstms_iodesc)); | 148 | s3c24xx_init_io(vstms_iodesc, ARRAY_SIZE(vstms_iodesc)); |
| 154 | s3c24xx_init_clocks(12000000); | 149 | s3c24xx_init_clocks(12000000); |
| 155 | s3c24xx_init_uarts(vstms_uartcfgs, ARRAY_SIZE(vstms_uartcfgs)); | 150 | s3c24xx_init_uarts(vstms_uartcfgs, ARRAY_SIZE(vstms_uartcfgs)); |
| 156 | s3c24xx_set_board(&vstms_board); | 151 | } |
| 152 | |||
| 153 | static void __init vstms_init(void) | ||
| 154 | { | ||
| 155 | platform_add_devices(vstms_devices, ARRAY_SIZE(vstms_devices)); | ||
| 157 | } | 156 | } |
| 158 | 157 | ||
| 159 | MACHINE_START(VSTMS, "VSTMS") | 158 | MACHINE_START(VSTMS, "VSTMS") |
| @@ -163,6 +162,7 @@ MACHINE_START(VSTMS, "VSTMS") | |||
| 163 | 162 | ||
| 164 | .fixup = vstms_fixup, | 163 | .fixup = vstms_fixup, |
| 165 | .init_irq = s3c24xx_init_irq, | 164 | .init_irq = s3c24xx_init_irq, |
| 165 | .init_machine = vstms_init, | ||
| 166 | .map_io = vstms_map_io, | 166 | .map_io = vstms_map_io, |
| 167 | .timer = &s3c24xx_timer, | 167 | .timer = &s3c24xx_timer, |
| 168 | MACHINE_END | 168 | MACHINE_END |
diff --git a/arch/arm/mach-s3c2440/mach-anubis.c b/arch/arm/mach-s3c2440/mach-anubis.c index 0f4e2882aa13..b5d387ef37e1 100644 --- a/arch/arm/mach-s3c2440/mach-anubis.c +++ b/arch/arm/mach-s3c2440/mach-anubis.c | |||
| @@ -281,11 +281,6 @@ static struct clk *anubis_clocks[] = { | |||
| 281 | &s3c24xx_uclk, | 281 | &s3c24xx_uclk, |
| 282 | }; | 282 | }; |
| 283 | 283 | ||
| 284 | static struct s3c24xx_board anubis_board __initdata = { | ||
| 285 | .devices = anubis_devices, | ||
| 286 | .devices_count = ARRAY_SIZE(anubis_devices), | ||
| 287 | }; | ||
| 288 | |||
| 289 | static void __init anubis_map_io(void) | 284 | static void __init anubis_map_io(void) |
| 290 | { | 285 | { |
| 291 | /* initialise the clocks */ | 286 | /* initialise the clocks */ |
| @@ -308,18 +303,24 @@ static void __init anubis_map_io(void) | |||
| 308 | s3c24xx_init_io(anubis_iodesc, ARRAY_SIZE(anubis_iodesc)); | 303 | s3c24xx_init_io(anubis_iodesc, ARRAY_SIZE(anubis_iodesc)); |
| 309 | s3c24xx_init_clocks(0); | 304 | s3c24xx_init_clocks(0); |
| 310 | s3c24xx_init_uarts(anubis_uartcfgs, ARRAY_SIZE(anubis_uartcfgs)); | 305 | s3c24xx_init_uarts(anubis_uartcfgs, ARRAY_SIZE(anubis_uartcfgs)); |
| 311 | s3c24xx_set_board(&anubis_board); | ||
| 312 | 306 | ||
| 313 | /* ensure that the GPIO is setup */ | 307 | /* ensure that the GPIO is setup */ |
| 314 | s3c2410_gpio_setpin(S3C2410_GPA0, 1); | 308 | s3c2410_gpio_setpin(S3C2410_GPA0, 1); |
| 315 | } | 309 | } |
| 316 | 310 | ||
| 311 | static void __init anubis_init(void) | ||
| 312 | { | ||
| 313 | platform_add_devices(anubis_devices, ARRAY_SIZE(anubis_devices)); | ||
| 314 | } | ||
| 315 | |||
| 316 | |||
| 317 | MACHINE_START(ANUBIS, "Simtec-Anubis") | 317 | MACHINE_START(ANUBIS, "Simtec-Anubis") |
| 318 | /* Maintainer: Ben Dooks <ben@simtec.co.uk> */ | 318 | /* Maintainer: Ben Dooks <ben@simtec.co.uk> */ |
| 319 | .phys_io = S3C2410_PA_UART, | 319 | .phys_io = S3C2410_PA_UART, |
| 320 | .io_pg_offst = (((u32)S3C24XX_VA_UART) >> 18) & 0xfffc, | 320 | .io_pg_offst = (((u32)S3C24XX_VA_UART) >> 18) & 0xfffc, |
| 321 | .boot_params = S3C2410_SDRAM_PA + 0x100, | 321 | .boot_params = S3C2410_SDRAM_PA + 0x100, |
| 322 | .map_io = anubis_map_io, | 322 | .map_io = anubis_map_io, |
| 323 | .init_machine = anubis_init, | ||
| 323 | .init_irq = s3c24xx_init_irq, | 324 | .init_irq = s3c24xx_init_irq, |
| 324 | .timer = &s3c24xx_timer, | 325 | .timer = &s3c24xx_timer, |
| 325 | MACHINE_END | 326 | MACHINE_END |
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 |
diff --git a/arch/arm/mach-s3c2440/mach-osiris.c b/arch/arm/mach-s3c2440/mach-osiris.c index c9872210ab5a..324f5a237921 100644 --- a/arch/arm/mach-s3c2440/mach-osiris.c +++ b/arch/arm/mach-s3c2440/mach-osiris.c | |||
| @@ -251,11 +251,6 @@ static struct clk *osiris_clocks[] = { | |||
| 251 | &s3c24xx_uclk, | 251 | &s3c24xx_uclk, |
| 252 | }; | 252 | }; |
| 253 | 253 | ||
| 254 | static struct s3c24xx_board osiris_board __initdata = { | ||
| 255 | .devices = osiris_devices, | ||
| 256 | .devices_count = ARRAY_SIZE(osiris_devices), | ||
| 257 | }; | ||
| 258 | |||
| 259 | static void __init osiris_map_io(void) | 254 | static void __init osiris_map_io(void) |
| 260 | { | 255 | { |
| 261 | unsigned long flags; | 256 | unsigned long flags; |
| @@ -280,7 +275,6 @@ static void __init osiris_map_io(void) | |||
| 280 | s3c24xx_init_io(osiris_iodesc, ARRAY_SIZE(osiris_iodesc)); | 275 | s3c24xx_init_io(osiris_iodesc, ARRAY_SIZE(osiris_iodesc)); |
| 281 | s3c24xx_init_clocks(0); | 276 | s3c24xx_init_clocks(0); |
| 282 | s3c24xx_init_uarts(osiris_uartcfgs, ARRAY_SIZE(osiris_uartcfgs)); | 277 | s3c24xx_init_uarts(osiris_uartcfgs, ARRAY_SIZE(osiris_uartcfgs)); |
| 283 | s3c24xx_set_board(&osiris_board); | ||
| 284 | 278 | ||
| 285 | /* fix bus configuration (nBE settings wrong on ABLE pre v2.20) */ | 279 | /* fix bus configuration (nBE settings wrong on ABLE pre v2.20) */ |
| 286 | 280 | ||
| @@ -292,12 +286,18 @@ static void __init osiris_map_io(void) | |||
| 292 | s3c2410_gpio_setpin(S3C2410_GPA0, 1); | 286 | s3c2410_gpio_setpin(S3C2410_GPA0, 1); |
| 293 | } | 287 | } |
| 294 | 288 | ||
| 289 | static void __init osiris_init(void) | ||
| 290 | { | ||
| 291 | platform_add_devices(osiris_devices, ARRAY_SIZE(osiris_devices)); | ||
| 292 | }; | ||
| 293 | |||
| 295 | MACHINE_START(OSIRIS, "Simtec-OSIRIS") | 294 | MACHINE_START(OSIRIS, "Simtec-OSIRIS") |
| 296 | /* Maintainer: Ben Dooks <ben@simtec.co.uk> */ | 295 | /* Maintainer: Ben Dooks <ben@simtec.co.uk> */ |
| 297 | .phys_io = S3C2410_PA_UART, | 296 | .phys_io = S3C2410_PA_UART, |
| 298 | .io_pg_offst = (((u32)S3C24XX_VA_UART) >> 18) & 0xfffc, | 297 | .io_pg_offst = (((u32)S3C24XX_VA_UART) >> 18) & 0xfffc, |
| 299 | .boot_params = S3C2410_SDRAM_PA + 0x100, | 298 | .boot_params = S3C2410_SDRAM_PA + 0x100, |
| 300 | .map_io = osiris_map_io, | 299 | .map_io = osiris_map_io, |
| 300 | .init_machine = osiris_init, | ||
| 301 | .init_irq = s3c24xx_init_irq, | 301 | .init_irq = s3c24xx_init_irq, |
| 302 | .timer = &s3c24xx_timer, | 302 | .timer = &s3c24xx_timer, |
| 303 | MACHINE_END | 303 | MACHINE_END |
diff --git a/arch/arm/mach-s3c2440/mach-rx3715.c b/arch/arm/mach-s3c2440/mach-rx3715.c index ae1d0a81fd6a..c3cc4bf158f6 100644 --- a/arch/arm/mach-s3c2440/mach-rx3715.c +++ b/arch/arm/mach-s3c2440/mach-rx3715.c | |||
| @@ -202,11 +202,6 @@ static struct platform_device *rx3715_devices[] __initdata = { | |||
| 202 | &s3c_device_nand, | 202 | &s3c_device_nand, |
| 203 | }; | 203 | }; |
| 204 | 204 | ||
| 205 | static struct s3c24xx_board rx3715_board __initdata = { | ||
| 206 | .devices = rx3715_devices, | ||
| 207 | .devices_count = ARRAY_SIZE(rx3715_devices) | ||
| 208 | }; | ||
| 209 | |||
| 210 | static void __init rx3715_map_io(void) | 205 | static void __init rx3715_map_io(void) |
| 211 | { | 206 | { |
| 212 | s3c_device_nand.dev.platform_data = &rx3715_nand_info; | 207 | s3c_device_nand.dev.platform_data = &rx3715_nand_info; |
| @@ -214,7 +209,6 @@ static void __init rx3715_map_io(void) | |||
| 214 | s3c24xx_init_io(rx3715_iodesc, ARRAY_SIZE(rx3715_iodesc)); | 209 | s3c24xx_init_io(rx3715_iodesc, ARRAY_SIZE(rx3715_iodesc)); |
| 215 | s3c24xx_init_clocks(16934000); | 210 | s3c24xx_init_clocks(16934000); |
| 216 | s3c24xx_init_uarts(rx3715_uartcfgs, ARRAY_SIZE(rx3715_uartcfgs)); | 211 | s3c24xx_init_uarts(rx3715_uartcfgs, ARRAY_SIZE(rx3715_uartcfgs)); |
| 217 | s3c24xx_set_board(&rx3715_board); | ||
| 218 | } | 212 | } |
| 219 | 213 | ||
| 220 | static void __init rx3715_init_irq(void) | 214 | static void __init rx3715_init_irq(void) |
| @@ -230,9 +224,9 @@ static void __init rx3715_init_machine(void) | |||
| 230 | s3c2410_pm_init(); | 224 | s3c2410_pm_init(); |
| 231 | 225 | ||
| 232 | s3c24xx_fb_set_platdata(&rx3715_lcdcfg); | 226 | s3c24xx_fb_set_platdata(&rx3715_lcdcfg); |
| 227 | platform_add_devices(rx3715_devices, ARRAY_SIZE(rx3715_devices)); | ||
| 233 | } | 228 | } |
| 234 | 229 | ||
| 235 | |||
| 236 | MACHINE_START(RX3715, "IPAQ-RX3715") | 230 | MACHINE_START(RX3715, "IPAQ-RX3715") |
| 237 | /* Maintainer: Ben Dooks <ben@fluff.org> */ | 231 | /* Maintainer: Ben Dooks <ben@fluff.org> */ |
| 238 | .phys_io = S3C2410_PA_UART, | 232 | .phys_io = S3C2410_PA_UART, |
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 | ||
diff --git a/arch/arm/mach-s3c2443/mach-smdk2443.c b/arch/arm/mach-s3c2443/mach-smdk2443.c index e82aaff7dee4..b71ee53c2865 100644 --- a/arch/arm/mach-s3c2443/mach-smdk2443.c +++ b/arch/arm/mach-s3c2443/mach-smdk2443.c | |||
| @@ -106,21 +106,16 @@ static struct platform_device *smdk2443_devices[] __initdata = { | |||
| 106 | &s3c_device_i2c, | 106 | &s3c_device_i2c, |
| 107 | }; | 107 | }; |
| 108 | 108 | ||
| 109 | static struct s3c24xx_board smdk2443_board __initdata = { | ||
| 110 | .devices = smdk2443_devices, | ||
| 111 | .devices_count = ARRAY_SIZE(smdk2443_devices) | ||
| 112 | }; | ||
| 113 | |||
| 114 | static void __init smdk2443_map_io(void) | 109 | static void __init smdk2443_map_io(void) |
| 115 | { | 110 | { |
| 116 | s3c24xx_init_io(smdk2443_iodesc, ARRAY_SIZE(smdk2443_iodesc)); | 111 | s3c24xx_init_io(smdk2443_iodesc, ARRAY_SIZE(smdk2443_iodesc)); |
| 117 | s3c24xx_init_clocks(12000000); | 112 | s3c24xx_init_clocks(12000000); |
| 118 | s3c24xx_init_uarts(smdk2443_uartcfgs, ARRAY_SIZE(smdk2443_uartcfgs)); | 113 | s3c24xx_init_uarts(smdk2443_uartcfgs, ARRAY_SIZE(smdk2443_uartcfgs)); |
| 119 | s3c24xx_set_board(&smdk2443_board); | ||
| 120 | } | 114 | } |
| 121 | 115 | ||
| 122 | static void __init smdk2443_machine_init(void) | 116 | static void __init smdk2443_machine_init(void) |
| 123 | { | 117 | { |
| 118 | platform_add_devices(smdk2443_devices, ARRAY_SIZE(smdk2443_devices)); | ||
| 124 | smdk_machine_init(); | 119 | smdk_machine_init(); |
| 125 | } | 120 | } |
| 126 | 121 | ||
diff --git a/arch/arm/plat-s3c24xx/cpu.c b/arch/arm/plat-s3c24xx/cpu.c index 3e314a296255..8ce4904d3131 100644 --- a/arch/arm/plat-s3c24xx/cpu.c +++ b/arch/arm/plat-s3c24xx/cpu.c | |||
| @@ -181,15 +181,6 @@ s3c_lookup_cpu(unsigned long idcode) | |||
| 181 | return NULL; | 181 | return NULL; |
| 182 | } | 182 | } |
| 183 | 183 | ||
| 184 | /* board information */ | ||
| 185 | |||
| 186 | static struct s3c24xx_board *board; | ||
| 187 | |||
| 188 | void s3c24xx_set_board(struct s3c24xx_board *b) | ||
| 189 | { | ||
| 190 | board = b; | ||
| 191 | } | ||
| 192 | |||
| 193 | /* cpu information */ | 184 | /* cpu information */ |
| 194 | 185 | ||
| 195 | static struct cpu_table *cpu; | 186 | static struct cpu_table *cpu; |
| @@ -333,26 +324,6 @@ static int __init s3c_arch_init(void) | |||
| 333 | return ret; | 324 | return ret; |
| 334 | 325 | ||
| 335 | ret = platform_add_devices(s3c24xx_uart_devs, nr_uarts); | 326 | ret = platform_add_devices(s3c24xx_uart_devs, nr_uarts); |
| 336 | if (ret != 0) | ||
| 337 | return ret; | ||
| 338 | |||
| 339 | if (board != NULL) { | ||
| 340 | struct platform_device **ptr = board->devices; | ||
| 341 | int i; | ||
| 342 | |||
| 343 | for (i = 0; i < board->devices_count; i++, ptr++) { | ||
| 344 | ret = platform_device_register(*ptr); | ||
| 345 | |||
| 346 | if (ret) { | ||
| 347 | printk(KERN_ERR "s3c24xx: failed to add board device %s (%d) @%p\n", (*ptr)->name, ret, *ptr); | ||
| 348 | } | ||
| 349 | } | ||
| 350 | |||
| 351 | /* mask any error, we may not need all these board | ||
| 352 | * devices */ | ||
| 353 | ret = 0; | ||
| 354 | } | ||
| 355 | |||
| 356 | return ret; | 327 | return ret; |
| 357 | } | 328 | } |
| 358 | 329 | ||
diff --git a/include/asm-arm/plat-s3c24xx/cpu.h b/include/asm-arm/plat-s3c24xx/cpu.h index 8c17ca4348f1..23e420e8bd5b 100644 --- a/include/asm-arm/plat-s3c24xx/cpu.h +++ b/include/asm-arm/plat-s3c24xx/cpu.h | |||
| @@ -40,19 +40,6 @@ extern void s3c24xx_init_uartdevs(char *name, | |||
| 40 | struct s3c24xx_uart_resources *res, | 40 | struct s3c24xx_uart_resources *res, |
| 41 | struct s3c2410_uartcfg *cfg, int no); | 41 | struct s3c2410_uartcfg *cfg, int no); |
| 42 | 42 | ||
| 43 | /* the board structure is used at first initialsation time | ||
| 44 | * to get info such as the devices to register for this | ||
| 45 | * board. This is done because platfrom_add_devices() cannot | ||
| 46 | * be called from the map_io entry. | ||
| 47 | */ | ||
| 48 | |||
| 49 | struct s3c24xx_board { | ||
| 50 | struct platform_device **devices; | ||
| 51 | unsigned int devices_count; | ||
| 52 | }; | ||
| 53 | |||
| 54 | extern void s3c24xx_set_board(struct s3c24xx_board *board); | ||
| 55 | |||
| 56 | /* timer for 2410/2440 */ | 43 | /* timer for 2410/2440 */ |
| 57 | 44 | ||
| 58 | struct sys_timer; | 45 | struct sys_timer; |
