diff options
Diffstat (limited to 'arch/arm/plat-s3c24xx/cpu.c')
-rw-r--r-- | arch/arm/plat-s3c24xx/cpu.c | 29 |
1 files changed, 0 insertions, 29 deletions
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 | ||