Merge branch 'for-linus/samsung' of git://git.fluff.org/bjdooks/linux

* 'for-linus/samsung' of git://git.fluff.org/bjdooks/linux:
ARM: MINI2440: Fixup __initdata usage
ARM: MINI2440: Fix crash on boot due to improper __initdata qualifier
ARM: SMDK6410: Specify no GPIO for B_PWR_5V regulator
ARM: S3C: NAND: Check the existence of nr_map before copying

+21 -20
+18 -18
arch/arm/mach-s3c2440/mach-mini2440.c
··· 288 288 289 289 /* DM9000AEP 10/100 ethernet controller */ 290 290 291 - static struct resource mini2440_dm9k_resource[] __initdata = { 291 + static struct resource mini2440_dm9k_resource[] = { 292 292 [0] = { 293 293 .start = MACH_MINI2440_DM9K_BASE, 294 294 .end = MACH_MINI2440_DM9K_BASE + 3, ··· 310 310 * The DM9000 has no eeprom, and it's MAC address is set by 311 311 * the bootloader before starting the kernel. 312 312 */ 313 - static struct dm9000_plat_data mini2440_dm9k_pdata __initdata = { 313 + static struct dm9000_plat_data mini2440_dm9k_pdata = { 314 314 .flags = (DM9000_PLATF_16BITONLY | DM9000_PLATF_NO_EEPROM), 315 315 }; 316 316 317 - static struct platform_device mini2440_device_eth __initdata = { 317 + static struct platform_device mini2440_device_eth = { 318 318 .name = "dm9000", 319 319 .id = -1, 320 320 .num_resources = ARRAY_SIZE(mini2440_dm9k_resource), ··· 341 341 * | | +----+ +----+ 342 342 * ..... 343 343 */ 344 - static struct gpio_keys_button mini2440_buttons[] __initdata = { 344 + static struct gpio_keys_button mini2440_buttons[] = { 345 345 { 346 346 .gpio = S3C2410_GPG(0), /* K1 */ 347 347 .code = KEY_F1, ··· 384 384 #endif 385 385 }; 386 386 387 - static struct gpio_keys_platform_data mini2440_button_data __initdata = { 387 + static struct gpio_keys_platform_data mini2440_button_data = { 388 388 .buttons = mini2440_buttons, 389 389 .nbuttons = ARRAY_SIZE(mini2440_buttons), 390 390 }; 391 391 392 - static struct platform_device mini2440_button_device __initdata = { 392 + static struct platform_device mini2440_button_device = { 393 393 .name = "gpio-keys", 394 394 .id = -1, 395 395 .dev = { ··· 399 399 400 400 /* LEDS */ 401 401 402 - static struct s3c24xx_led_platdata mini2440_led1_pdata __initdata = { 402 + static struct s3c24xx_led_platdata mini2440_led1_pdata = { 403 403 .name = "led1", 404 404 .gpio = S3C2410_GPB(5), 405 405 .flags = S3C24XX_LEDF_ACTLOW | S3C24XX_LEDF_TRISTATE, 406 406 .def_trigger = "heartbeat", 407 407 }; 408 408 409 - static struct s3c24xx_led_platdata mini2440_led2_pdata __initdata = { 409 + static struct s3c24xx_led_platdata mini2440_led2_pdata = { 410 410 .name = "led2", 411 411 .gpio = S3C2410_GPB(6), 412 412 .flags = S3C24XX_LEDF_ACTLOW | S3C24XX_LEDF_TRISTATE, 413 413 .def_trigger = "nand-disk", 414 414 }; 415 415 416 - static struct s3c24xx_led_platdata mini2440_led3_pdata __initdata = { 416 + static struct s3c24xx_led_platdata mini2440_led3_pdata = { 417 417 .name = "led3", 418 418 .gpio = S3C2410_GPB(7), 419 419 .flags = S3C24XX_LEDF_ACTLOW | S3C24XX_LEDF_TRISTATE, 420 420 .def_trigger = "mmc0", 421 421 }; 422 422 423 - static struct s3c24xx_led_platdata mini2440_led4_pdata __initdata = { 423 + static struct s3c24xx_led_platdata mini2440_led4_pdata = { 424 424 .name = "led4", 425 425 .gpio = S3C2410_GPB(8), 426 426 .flags = S3C24XX_LEDF_ACTLOW | S3C24XX_LEDF_TRISTATE, 427 427 .def_trigger = "", 428 428 }; 429 429 430 - static struct s3c24xx_led_platdata mini2440_led_backlight_pdata __initdata = { 430 + static struct s3c24xx_led_platdata mini2440_led_backlight_pdata = { 431 431 .name = "backlight", 432 432 .gpio = S3C2410_GPG(4), 433 433 .def_trigger = "backlight", 434 434 }; 435 435 436 - static struct platform_device mini2440_led1 __initdata = { 436 + static struct platform_device mini2440_led1 = { 437 437 .name = "s3c24xx_led", 438 438 .id = 1, 439 439 .dev = { ··· 441 441 }, 442 442 }; 443 443 444 - static struct platform_device mini2440_led2 __initdata = { 444 + static struct platform_device mini2440_led2 = { 445 445 .name = "s3c24xx_led", 446 446 .id = 2, 447 447 .dev = { ··· 449 449 }, 450 450 }; 451 451 452 - static struct platform_device mini2440_led3 __initdata = { 452 + static struct platform_device mini2440_led3 = { 453 453 .name = "s3c24xx_led", 454 454 .id = 3, 455 455 .dev = { ··· 457 457 }, 458 458 }; 459 459 460 - static struct platform_device mini2440_led4 __initdata = { 460 + static struct platform_device mini2440_led4 = { 461 461 .name = "s3c24xx_led", 462 462 .id = 4, 463 463 .dev = { ··· 465 465 }, 466 466 }; 467 467 468 - static struct platform_device mini2440_led_backlight __initdata = { 468 + static struct platform_device mini2440_led_backlight = { 469 469 .name = "s3c24xx_led", 470 470 .id = 5, 471 471 .dev = { ··· 475 475 476 476 /* AUDIO */ 477 477 478 - static struct s3c24xx_uda134x_platform_data mini2440_audio_pins __initdata = { 478 + static struct s3c24xx_uda134x_platform_data mini2440_audio_pins = { 479 479 .l3_clk = S3C2410_GPB(4), 480 480 .l3_mode = S3C2410_GPB(2), 481 481 .l3_data = S3C2410_GPB(3), 482 482 .model = UDA134X_UDA1341 483 483 }; 484 484 485 - static struct platform_device mini2440_audio __initdata = { 485 + static struct platform_device mini2440_audio = { 486 486 .name = "s3c24xx_uda134x", 487 487 .id = 0, 488 488 .dev = {
+1
arch/arm/mach-s3c6410/mach-smdk6410.c
··· 211 211 .supply_name = "B_PWR_5V", 212 212 .microvolts = 5000000, 213 213 .init_data = &smdk6410_b_pwr_5v_data, 214 + .gpio = -EINVAL, 214 215 }; 215 216 216 217 static struct platform_device smdk6410_b_pwr_5v = {
+2 -2
arch/arm/plat-s3c/dev-nand.c
··· 58 58 return -ENOMEM; 59 59 } 60 60 61 - size = sizeof(int) * set->nr_chips; 62 - if (size) { 61 + if (set->nr_map && set->nr_chips) { 62 + size = sizeof(int) * set->nr_chips; 63 63 ptr = kmemdup(set->nr_map, size, GFP_KERNEL); 64 64 set->nr_map = ptr; 65 65