diff options
| author | Senthilvadivu Guruswamy <svadivu@ti.com> | 2011-02-22 04:24:50 -0500 |
|---|---|---|
| committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2011-02-23 02:34:25 -0500 |
| commit | d5e13227c32f12de3afb2e26a86bc9f3e5aaf7b6 (patch) | |
| tree | 209fdc2805cff6082667ee839e5d88e597af0414 | |
| parent | b7ee79abcc1bd549eadf5a9852657058e6ecca47 (diff) | |
OMAP2, 3: DSS2: board files: replace platform_device_register with omap_display_init()
This patch updated board files to replace platform_device_register or
platform_add_devices of DSS with omap_display_init(). This moves away
registration of DSS from board files into a common place.
Reviewed-by: Kevin Hilman <khilman@ti.com>
Tested-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Sumit Semwal <sumit.semwal@ti.com>
Signed-off-by: Senthilvadivu Guruswamy <svadivu@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
| -rw-r--r-- | arch/arm/mach-omap2/board-3430sdp.c | 14 | ||||
| -rw-r--r-- | arch/arm/mach-omap2/board-am3517evm.c | 16 | ||||
| -rw-r--r-- | arch/arm/mach-omap2/board-cm-t35.c | 10 | ||||
| -rw-r--r-- | arch/arm/mach-omap2/board-devkit8000.c | 10 | ||||
| -rw-r--r-- | arch/arm/mach-omap2/board-igep0020.c | 10 | ||||
| -rw-r--r-- | arch/arm/mach-omap2/board-omap3beagle.c | 10 | ||||
| -rw-r--r-- | arch/arm/mach-omap2/board-omap3evm.c | 14 | ||||
| -rw-r--r-- | arch/arm/mach-omap2/board-omap3pandora.c | 10 | ||||
| -rw-r--r-- | arch/arm/mach-omap2/board-omap3stalker.c | 10 | ||||
| -rw-r--r-- | arch/arm/mach-omap2/board-rx51-video.c | 15 | ||||
| -rw-r--r-- | arch/arm/mach-omap2/board-zoom-display.c | 15 |
11 files changed, 11 insertions, 123 deletions
diff --git a/arch/arm/mach-omap2/board-3430sdp.c b/arch/arm/mach-omap2/board-3430sdp.c index 0f680cc4d9f..df09e0d6f7d 100644 --- a/arch/arm/mach-omap2/board-3430sdp.c +++ b/arch/arm/mach-omap2/board-3430sdp.c | |||
| @@ -307,21 +307,9 @@ static struct omap_dss_board_info sdp3430_dss_data = { | |||
| 307 | .default_device = &sdp3430_lcd_device, | 307 | .default_device = &sdp3430_lcd_device, |
| 308 | }; | 308 | }; |
| 309 | 309 | ||
| 310 | static struct platform_device sdp3430_dss_device = { | ||
| 311 | .name = "omapdss", | ||
| 312 | .id = -1, | ||
| 313 | .dev = { | ||
| 314 | .platform_data = &sdp3430_dss_data, | ||
| 315 | }, | ||
| 316 | }; | ||
| 317 | |||
| 318 | static struct regulator_consumer_supply sdp3430_vdda_dac_supply = | 310 | static struct regulator_consumer_supply sdp3430_vdda_dac_supply = |
| 319 | REGULATOR_SUPPLY("vdda_dac", "omapdss"); | 311 | REGULATOR_SUPPLY("vdda_dac", "omapdss"); |
| 320 | 312 | ||
| 321 | static struct platform_device *sdp3430_devices[] __initdata = { | ||
| 322 | &sdp3430_dss_device, | ||
| 323 | }; | ||
| 324 | |||
| 325 | static struct omap_board_config_kernel sdp3430_config[] __initdata = { | 313 | static struct omap_board_config_kernel sdp3430_config[] __initdata = { |
| 326 | }; | 314 | }; |
| 327 | 315 | ||
| @@ -795,7 +783,7 @@ static void __init omap_3430sdp_init(void) | |||
| 795 | { | 783 | { |
| 796 | omap3_mux_init(board_mux, OMAP_PACKAGE_CBB); | 784 | omap3_mux_init(board_mux, OMAP_PACKAGE_CBB); |
| 797 | omap3430_i2c_init(); | 785 | omap3430_i2c_init(); |
| 798 | platform_add_devices(sdp3430_devices, ARRAY_SIZE(sdp3430_devices)); | 786 | omap_display_init(&sdp3430_dss_data); |
| 799 | if (omap_rev() > OMAP3430_REV_ES1_0) | 787 | if (omap_rev() > OMAP3430_REV_ES1_0) |
| 800 | ts_gpio = SDP3430_TS_GPIO_IRQ_SDPV2; | 788 | ts_gpio = SDP3430_TS_GPIO_IRQ_SDPV2; |
| 801 | else | 789 | else |
diff --git a/arch/arm/mach-omap2/board-am3517evm.c b/arch/arm/mach-omap2/board-am3517evm.c index 8532d6e0d53..634fe65b33c 100644 --- a/arch/arm/mach-omap2/board-am3517evm.c +++ b/arch/arm/mach-omap2/board-am3517evm.c | |||
| @@ -378,24 +378,12 @@ static struct omap_dss_board_info am3517_evm_dss_data = { | |||
| 378 | .default_device = &am3517_evm_lcd_device, | 378 | .default_device = &am3517_evm_lcd_device, |
| 379 | }; | 379 | }; |
| 380 | 380 | ||
| 381 | static struct platform_device am3517_evm_dss_device = { | ||
| 382 | .name = "omapdss", | ||
| 383 | .id = -1, | ||
| 384 | .dev = { | ||
| 385 | .platform_data = &am3517_evm_dss_data, | ||
| 386 | }, | ||
| 387 | }; | ||
| 388 | |||
| 389 | /* | 381 | /* |
| 390 | * Board initialization | 382 | * Board initialization |
| 391 | */ | 383 | */ |
| 392 | static struct omap_board_config_kernel am3517_evm_config[] __initdata = { | 384 | static struct omap_board_config_kernel am3517_evm_config[] __initdata = { |
| 393 | }; | 385 | }; |
| 394 | 386 | ||
| 395 | static struct platform_device *am3517_evm_devices[] __initdata = { | ||
| 396 | &am3517_evm_dss_device, | ||
| 397 | }; | ||
| 398 | |||
| 399 | static void __init am3517_evm_init_early(void) | 387 | static void __init am3517_evm_init_early(void) |
| 400 | { | 388 | { |
| 401 | omap_board_config = am3517_evm_config; | 389 | omap_board_config = am3517_evm_config; |
| @@ -498,9 +486,7 @@ static void __init am3517_evm_init(void) | |||
| 498 | omap3_mux_init(board_mux, OMAP_PACKAGE_CBB); | 486 | omap3_mux_init(board_mux, OMAP_PACKAGE_CBB); |
| 499 | 487 | ||
| 500 | am3517_evm_i2c_init(); | 488 | am3517_evm_i2c_init(); |
| 501 | platform_add_devices(am3517_evm_devices, | 489 | omap_display_init(&am3517_evm_dss_data); |
| 502 | ARRAY_SIZE(am3517_evm_devices)); | ||
| 503 | |||
| 504 | omap_serial_init(); | 490 | omap_serial_init(); |
| 505 | 491 | ||
| 506 | /* Configure GPIO for EHCI port */ | 492 | /* Configure GPIO for EHCI port */ |
diff --git a/arch/arm/mach-omap2/board-cm-t35.c b/arch/arm/mach-omap2/board-cm-t35.c index d650b7f8078..7311824be99 100644 --- a/arch/arm/mach-omap2/board-cm-t35.c +++ b/arch/arm/mach-omap2/board-cm-t35.c | |||
| @@ -401,14 +401,6 @@ static struct omap_dss_board_info cm_t35_dss_data = { | |||
| 401 | .default_device = &cm_t35_dvi_device, | 401 | .default_device = &cm_t35_dvi_device, |
| 402 | }; | 402 | }; |
| 403 | 403 | ||
| 404 | static struct platform_device cm_t35_dss_device = { | ||
| 405 | .name = "omapdss", | ||
| 406 | .id = -1, | ||
| 407 | .dev = { | ||
| 408 | .platform_data = &cm_t35_dss_data, | ||
| 409 | }, | ||
| 410 | }; | ||
| 411 | |||
| 412 | static struct omap2_mcspi_device_config tdo24m_mcspi_config = { | 404 | static struct omap2_mcspi_device_config tdo24m_mcspi_config = { |
| 413 | .turbo_mode = 0, | 405 | .turbo_mode = 0, |
| 414 | .single_channel = 1, /* 0: slave, 1: master */ | 406 | .single_channel = 1, /* 0: slave, 1: master */ |
| @@ -468,7 +460,7 @@ static void __init cm_t35_init_display(void) | |||
| 468 | msleep(50); | 460 | msleep(50); |
| 469 | gpio_set_value(lcd_en_gpio, 1); | 461 | gpio_set_value(lcd_en_gpio, 1); |
| 470 | 462 | ||
| 471 | err = platform_device_register(&cm_t35_dss_device); | 463 | err = omap_display_init(&cm_t35_dss_data); |
| 472 | if (err) { | 464 | if (err) { |
| 473 | pr_err("CM-T35: failed to register DSS device\n"); | 465 | pr_err("CM-T35: failed to register DSS device\n"); |
| 474 | goto err_dev_reg; | 466 | goto err_dev_reg; |
diff --git a/arch/arm/mach-omap2/board-devkit8000.c b/arch/arm/mach-omap2/board-devkit8000.c index af742887e83..54abdd06436 100644 --- a/arch/arm/mach-omap2/board-devkit8000.c +++ b/arch/arm/mach-omap2/board-devkit8000.c | |||
| @@ -195,14 +195,6 @@ static struct omap_dss_board_info devkit8000_dss_data = { | |||
| 195 | .default_device = &devkit8000_lcd_device, | 195 | .default_device = &devkit8000_lcd_device, |
| 196 | }; | 196 | }; |
| 197 | 197 | ||
| 198 | static struct platform_device devkit8000_dss_device = { | ||
| 199 | .name = "omapdss", | ||
| 200 | .id = -1, | ||
| 201 | .dev = { | ||
| 202 | .platform_data = &devkit8000_dss_data, | ||
| 203 | }, | ||
| 204 | }; | ||
| 205 | |||
| 206 | static struct regulator_consumer_supply devkit8000_vdda_dac_supply = | 198 | static struct regulator_consumer_supply devkit8000_vdda_dac_supply = |
| 207 | REGULATOR_SUPPLY("vdda_dac", "omapdss"); | 199 | REGULATOR_SUPPLY("vdda_dac", "omapdss"); |
| 208 | 200 | ||
| @@ -579,7 +571,6 @@ static void __init omap_dm9000_init(void) | |||
| 579 | } | 571 | } |
| 580 | 572 | ||
| 581 | static struct platform_device *devkit8000_devices[] __initdata = { | 573 | static struct platform_device *devkit8000_devices[] __initdata = { |
| 582 | &devkit8000_dss_device, | ||
| 583 | &leds_gpio, | 574 | &leds_gpio, |
| 584 | &keys_gpio, | 575 | &keys_gpio, |
| 585 | &omap_dm9000_dev, | 576 | &omap_dm9000_dev, |
| @@ -801,6 +792,7 @@ static void __init devkit8000_init(void) | |||
| 801 | platform_add_devices(devkit8000_devices, | 792 | platform_add_devices(devkit8000_devices, |
| 802 | ARRAY_SIZE(devkit8000_devices)); | 793 | ARRAY_SIZE(devkit8000_devices)); |
| 803 | 794 | ||
| 795 | omap_display_init(&devkit8000_dss_data); | ||
| 804 | spi_register_board_info(devkit8000_spi_board_info, | 796 | spi_register_board_info(devkit8000_spi_board_info, |
| 805 | ARRAY_SIZE(devkit8000_spi_board_info)); | 797 | ARRAY_SIZE(devkit8000_spi_board_info)); |
| 806 | 798 | ||
diff --git a/arch/arm/mach-omap2/board-igep0020.c b/arch/arm/mach-omap2/board-igep0020.c index c235fa2a77a..54e6318f4a8 100644 --- a/arch/arm/mach-omap2/board-igep0020.c +++ b/arch/arm/mach-omap2/board-igep0020.c | |||
| @@ -485,14 +485,6 @@ static struct omap_dss_board_info igep2_dss_data = { | |||
| 485 | .default_device = &igep2_dvi_device, | 485 | .default_device = &igep2_dvi_device, |
| 486 | }; | 486 | }; |
| 487 | 487 | ||
| 488 | static struct platform_device igep2_dss_device = { | ||
| 489 | .name = "omapdss", | ||
| 490 | .id = -1, | ||
| 491 | .dev = { | ||
| 492 | .platform_data = &igep2_dss_data, | ||
| 493 | }, | ||
| 494 | }; | ||
| 495 | |||
| 496 | static struct regulator_consumer_supply igep2_vpll2_supply = | 488 | static struct regulator_consumer_supply igep2_vpll2_supply = |
| 497 | REGULATOR_SUPPLY("vdds_dsi", "omapdss"); | 489 | REGULATOR_SUPPLY("vdds_dsi", "omapdss"); |
| 498 | 490 | ||
| @@ -519,7 +511,6 @@ static void __init igep2_display_init(void) | |||
| 519 | } | 511 | } |
| 520 | 512 | ||
| 521 | static struct platform_device *igep2_devices[] __initdata = { | 513 | static struct platform_device *igep2_devices[] __initdata = { |
| 522 | &igep2_dss_device, | ||
| 523 | &igep2_vwlan_device, | 514 | &igep2_vwlan_device, |
| 524 | }; | 515 | }; |
| 525 | 516 | ||
| @@ -694,6 +685,7 @@ static void __init igep2_init(void) | |||
| 694 | /* Register I2C busses and drivers */ | 685 | /* Register I2C busses and drivers */ |
| 695 | igep2_i2c_init(); | 686 | igep2_i2c_init(); |
| 696 | platform_add_devices(igep2_devices, ARRAY_SIZE(igep2_devices)); | 687 | platform_add_devices(igep2_devices, ARRAY_SIZE(igep2_devices)); |
| 688 | omap_display_init(&igep2_dss_data); | ||
| 697 | omap_serial_init(); | 689 | omap_serial_init(); |
| 698 | usb_musb_init(&musb_board_data); | 690 | usb_musb_init(&musb_board_data); |
| 699 | usb_ehci_init(&ehci_pdata); | 691 | usb_ehci_init(&ehci_pdata); |
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c index 19bcd004d60..a1faea3b776 100644 --- a/arch/arm/mach-omap2/board-omap3beagle.c +++ b/arch/arm/mach-omap2/board-omap3beagle.c | |||
| @@ -228,14 +228,6 @@ static struct omap_dss_board_info beagle_dss_data = { | |||
| 228 | .default_device = &beagle_dvi_device, | 228 | .default_device = &beagle_dvi_device, |
| 229 | }; | 229 | }; |
| 230 | 230 | ||
| 231 | static struct platform_device beagle_dss_device = { | ||
| 232 | .name = "omapdss", | ||
| 233 | .id = -1, | ||
| 234 | .dev = { | ||
| 235 | .platform_data = &beagle_dss_data, | ||
| 236 | }, | ||
| 237 | }; | ||
| 238 | |||
| 239 | static struct regulator_consumer_supply beagle_vdac_supply = | 231 | static struct regulator_consumer_supply beagle_vdac_supply = |
| 240 | REGULATOR_SUPPLY("vdda_dac", "omapdss"); | 232 | REGULATOR_SUPPLY("vdda_dac", "omapdss"); |
| 241 | 233 | ||
| @@ -554,7 +546,6 @@ static void __init omap3_beagle_init_irq(void) | |||
| 554 | static struct platform_device *omap3_beagle_devices[] __initdata = { | 546 | static struct platform_device *omap3_beagle_devices[] __initdata = { |
| 555 | &leds_gpio, | 547 | &leds_gpio, |
| 556 | &keys_gpio, | 548 | &keys_gpio, |
| 557 | &beagle_dss_device, | ||
| 558 | }; | 549 | }; |
| 559 | 550 | ||
| 560 | static void __init omap3beagle_flash_init(void) | 551 | static void __init omap3beagle_flash_init(void) |
| @@ -621,6 +612,7 @@ static void __init omap3_beagle_init(void) | |||
| 621 | omap3_beagle_i2c_init(); | 612 | omap3_beagle_i2c_init(); |
| 622 | platform_add_devices(omap3_beagle_devices, | 613 | platform_add_devices(omap3_beagle_devices, |
| 623 | ARRAY_SIZE(omap3_beagle_devices)); | 614 | ARRAY_SIZE(omap3_beagle_devices)); |
| 615 | omap_display_init(&beagle_dss_data); | ||
| 624 | omap_serial_init(); | 616 | omap_serial_init(); |
| 625 | 617 | ||
| 626 | omap_mux_init_gpio(170, OMAP_PIN_INPUT); | 618 | omap_mux_init_gpio(170, OMAP_PIN_INPUT); |
diff --git a/arch/arm/mach-omap2/board-omap3evm.c b/arch/arm/mach-omap2/board-omap3evm.c index 5e38da97dec..8afafddadfb 100644 --- a/arch/arm/mach-omap2/board-omap3evm.c +++ b/arch/arm/mach-omap2/board-omap3evm.c | |||
| @@ -328,14 +328,6 @@ static struct omap_dss_board_info omap3_evm_dss_data = { | |||
| 328 | .default_device = &omap3_evm_lcd_device, | 328 | .default_device = &omap3_evm_lcd_device, |
| 329 | }; | 329 | }; |
| 330 | 330 | ||
| 331 | static struct platform_device omap3_evm_dss_device = { | ||
| 332 | .name = "omapdss", | ||
| 333 | .id = -1, | ||
| 334 | .dev = { | ||
| 335 | .platform_data = &omap3_evm_dss_data, | ||
| 336 | }, | ||
| 337 | }; | ||
| 338 | |||
| 339 | static struct regulator_consumer_supply omap3evm_vmmc1_supply = { | 331 | static struct regulator_consumer_supply omap3evm_vmmc1_supply = { |
| 340 | .supply = "vmmc", | 332 | .supply = "vmmc", |
| 341 | }; | 333 | }; |
| @@ -631,10 +623,6 @@ static void __init omap3_evm_init_early(void) | |||
| 631 | omap2_init_common_devices(mt46h32m32lf6_sdrc_params, NULL); | 623 | omap2_init_common_devices(mt46h32m32lf6_sdrc_params, NULL); |
| 632 | } | 624 | } |
| 633 | 625 | ||
| 634 | static struct platform_device *omap3_evm_devices[] __initdata = { | ||
| 635 | &omap3_evm_dss_device, | ||
| 636 | }; | ||
| 637 | |||
| 638 | static struct ehci_hcd_omap_platform_data ehci_pdata __initdata = { | 626 | static struct ehci_hcd_omap_platform_data ehci_pdata __initdata = { |
| 639 | 627 | ||
| 640 | .port_mode[0] = EHCI_HCD_OMAP_MODE_UNKNOWN, | 628 | .port_mode[0] = EHCI_HCD_OMAP_MODE_UNKNOWN, |
| @@ -672,7 +660,7 @@ static void __init omap3_evm_init(void) | |||
| 672 | 660 | ||
| 673 | omap3_evm_i2c_init(); | 661 | omap3_evm_i2c_init(); |
| 674 | 662 | ||
| 675 | platform_add_devices(omap3_evm_devices, ARRAY_SIZE(omap3_evm_devices)); | 663 | omap_display_init(&omap3_evm_dss_data); |
| 676 | 664 | ||
| 677 | spi_register_board_info(omap3evm_spi_board_info, | 665 | spi_register_board_info(omap3evm_spi_board_info, |
| 678 | ARRAY_SIZE(omap3evm_spi_board_info)); | 666 | ARRAY_SIZE(omap3evm_spi_board_info)); |
diff --git a/arch/arm/mach-omap2/board-omap3pandora.c b/arch/arm/mach-omap2/board-omap3pandora.c index b91f74ce3a9..17ef5479c7f 100644 --- a/arch/arm/mach-omap2/board-omap3pandora.c +++ b/arch/arm/mach-omap2/board-omap3pandora.c | |||
| @@ -253,14 +253,6 @@ static struct omap_dss_board_info pandora_dss_data = { | |||
| 253 | .default_device = &pandora_lcd_device, | 253 | .default_device = &pandora_lcd_device, |
| 254 | }; | 254 | }; |
| 255 | 255 | ||
| 256 | static struct platform_device pandora_dss_device = { | ||
| 257 | .name = "omapdss", | ||
| 258 | .id = -1, | ||
| 259 | .dev = { | ||
| 260 | .platform_data = &pandora_dss_data, | ||
| 261 | }, | ||
| 262 | }; | ||
| 263 | |||
| 264 | static void pandora_wl1251_init_card(struct mmc_card *card) | 256 | static void pandora_wl1251_init_card(struct mmc_card *card) |
| 265 | { | 257 | { |
| 266 | /* | 258 | /* |
| @@ -676,7 +668,6 @@ fail: | |||
| 676 | static struct platform_device *omap3pandora_devices[] __initdata = { | 668 | static struct platform_device *omap3pandora_devices[] __initdata = { |
| 677 | &pandora_leds_gpio, | 669 | &pandora_leds_gpio, |
| 678 | &pandora_keys_gpio, | 670 | &pandora_keys_gpio, |
| 679 | &pandora_dss_device, | ||
| 680 | &pandora_vwlan_device, | 671 | &pandora_vwlan_device, |
| 681 | }; | 672 | }; |
| 682 | 673 | ||
| @@ -711,6 +702,7 @@ static void __init omap3pandora_init(void) | |||
| 711 | pandora_wl1251_init(); | 702 | pandora_wl1251_init(); |
| 712 | platform_add_devices(omap3pandora_devices, | 703 | platform_add_devices(omap3pandora_devices, |
| 713 | ARRAY_SIZE(omap3pandora_devices)); | 704 | ARRAY_SIZE(omap3pandora_devices)); |
| 705 | omap_display_init(&pandora_dss_data); | ||
| 714 | omap_serial_init(); | 706 | omap_serial_init(); |
| 715 | spi_register_board_info(omap3pandora_spi_board_info, | 707 | spi_register_board_info(omap3pandora_spi_board_info, |
| 716 | ARRAY_SIZE(omap3pandora_spi_board_info)); | 708 | ARRAY_SIZE(omap3pandora_spi_board_info)); |
diff --git a/arch/arm/mach-omap2/board-omap3stalker.c b/arch/arm/mach-omap2/board-omap3stalker.c index 9c63c37b500..07006c323fc 100644 --- a/arch/arm/mach-omap2/board-omap3stalker.c +++ b/arch/arm/mach-omap2/board-omap3stalker.c | |||
| @@ -240,14 +240,6 @@ static struct omap_dss_board_info omap3_stalker_dss_data = { | |||
| 240 | .default_device = &omap3_stalker_dvi_device, | 240 | .default_device = &omap3_stalker_dvi_device, |
| 241 | }; | 241 | }; |
| 242 | 242 | ||
| 243 | static struct platform_device omap3_stalker_dss_device = { | ||
| 244 | .name = "omapdss", | ||
| 245 | .id = -1, | ||
| 246 | .dev = { | ||
| 247 | .platform_data = &omap3_stalker_dss_data, | ||
| 248 | }, | ||
| 249 | }; | ||
| 250 | |||
| 251 | static struct regulator_consumer_supply omap3stalker_vmmc1_supply = { | 243 | static struct regulator_consumer_supply omap3stalker_vmmc1_supply = { |
| 252 | .supply = "vmmc", | 244 | .supply = "vmmc", |
| 253 | }; | 245 | }; |
| @@ -604,7 +596,6 @@ static void __init omap3_stalker_init_irq(void) | |||
| 604 | } | 596 | } |
| 605 | 597 | ||
| 606 | static struct platform_device *omap3_stalker_devices[] __initdata = { | 598 | static struct platform_device *omap3_stalker_devices[] __initdata = { |
| 607 | &omap3_stalker_dss_device, | ||
| 608 | &keys_gpio, | 599 | &keys_gpio, |
| 609 | }; | 600 | }; |
| 610 | 601 | ||
| @@ -644,6 +635,7 @@ static void __init omap3_stalker_init(void) | |||
| 644 | platform_add_devices(omap3_stalker_devices, | 635 | platform_add_devices(omap3_stalker_devices, |
| 645 | ARRAY_SIZE(omap3_stalker_devices)); | 636 | ARRAY_SIZE(omap3_stalker_devices)); |
| 646 | 637 | ||
| 638 | omap_display_init(&omap3_stalker_dss_data); | ||
| 647 | spi_register_board_info(omap3stalker_spi_board_info, | 639 | spi_register_board_info(omap3stalker_spi_board_info, |
| 648 | ARRAY_SIZE(omap3stalker_spi_board_info)); | 640 | ARRAY_SIZE(omap3stalker_spi_board_info)); |
| 649 | 641 | ||
diff --git a/arch/arm/mach-omap2/board-rx51-video.c b/arch/arm/mach-omap2/board-rx51-video.c index acd670054d9..89a66db8b77 100644 --- a/arch/arm/mach-omap2/board-rx51-video.c +++ b/arch/arm/mach-omap2/board-rx51-video.c | |||
| @@ -66,18 +66,6 @@ static struct omap_dss_board_info rx51_dss_board_info = { | |||
| 66 | .default_device = &rx51_lcd_device, | 66 | .default_device = &rx51_lcd_device, |
| 67 | }; | 67 | }; |
| 68 | 68 | ||
| 69 | struct platform_device rx51_display_device = { | ||
| 70 | .name = "omapdss", | ||
| 71 | .id = -1, | ||
| 72 | .dev = { | ||
| 73 | .platform_data = &rx51_dss_board_info, | ||
| 74 | }, | ||
| 75 | }; | ||
| 76 | |||
| 77 | static struct platform_device *rx51_video_devices[] __initdata = { | ||
| 78 | &rx51_display_device, | ||
| 79 | }; | ||
| 80 | |||
| 81 | static int __init rx51_video_init(void) | 69 | static int __init rx51_video_init(void) |
| 82 | { | 70 | { |
| 83 | if (!machine_is_nokia_rx51()) | 71 | if (!machine_is_nokia_rx51()) |
| @@ -95,8 +83,7 @@ static int __init rx51_video_init(void) | |||
| 95 | 83 | ||
| 96 | gpio_direction_output(RX51_LCD_RESET_GPIO, 1); | 84 | gpio_direction_output(RX51_LCD_RESET_GPIO, 1); |
| 97 | 85 | ||
| 98 | platform_add_devices(rx51_video_devices, | 86 | omap_display_init(&rx51_dss_board_info); |
| 99 | ARRAY_SIZE(rx51_video_devices)); | ||
| 100 | return 0; | 87 | return 0; |
| 101 | } | 88 | } |
| 102 | 89 | ||
diff --git a/arch/arm/mach-omap2/board-zoom-display.c b/arch/arm/mach-omap2/board-zoom-display.c index 6bcd43657ae..37b84c2b850 100644 --- a/arch/arm/mach-omap2/board-zoom-display.c +++ b/arch/arm/mach-omap2/board-zoom-display.c | |||
| @@ -130,14 +130,6 @@ static struct omap_dss_board_info zoom_dss_data = { | |||
| 130 | .default_device = &zoom_lcd_device, | 130 | .default_device = &zoom_lcd_device, |
| 131 | }; | 131 | }; |
| 132 | 132 | ||
| 133 | static struct platform_device zoom_dss_device = { | ||
| 134 | .name = "omapdss", | ||
| 135 | .id = -1, | ||
| 136 | .dev = { | ||
| 137 | .platform_data = &zoom_dss_data, | ||
| 138 | }, | ||
| 139 | }; | ||
| 140 | |||
| 141 | static struct omap2_mcspi_device_config dss_lcd_mcspi_config = { | 133 | static struct omap2_mcspi_device_config dss_lcd_mcspi_config = { |
| 142 | .turbo_mode = 1, | 134 | .turbo_mode = 1, |
| 143 | .single_channel = 1, /* 0: slave, 1: master */ | 135 | .single_channel = 1, /* 0: slave, 1: master */ |
| @@ -153,14 +145,9 @@ static struct spi_board_info nec_8048_spi_board_info[] __initdata = { | |||
| 153 | }, | 145 | }, |
| 154 | }; | 146 | }; |
| 155 | 147 | ||
| 156 | static struct platform_device *zoom_display_devices[] __initdata = { | ||
| 157 | &zoom_dss_device, | ||
| 158 | }; | ||
| 159 | |||
| 160 | void __init zoom_display_init(void) | 148 | void __init zoom_display_init(void) |
| 161 | { | 149 | { |
| 162 | platform_add_devices(zoom_display_devices, | 150 | omap_display_init(&zoom_dss_data); |
| 163 | ARRAY_SIZE(zoom_display_devices)); | ||
| 164 | spi_register_board_info(nec_8048_spi_board_info, | 151 | spi_register_board_info(nec_8048_spi_board_info, |
| 165 | ARRAY_SIZE(nec_8048_spi_board_info)); | 152 | ARRAY_SIZE(nec_8048_spi_board_info)); |
| 166 | zoom_lcd_panel_init(); | 153 | zoom_lcd_panel_init(); |
