diff options
Diffstat (limited to 'arch/arm/mach-ux500/board-mop500.c')
-rw-r--r-- | arch/arm/mach-ux500/board-mop500.c | 30 |
1 files changed, 3 insertions, 27 deletions
diff --git a/arch/arm/mach-ux500/board-mop500.c b/arch/arm/mach-ux500/board-mop500.c index 8f421c0ca45c..8674a890fd1c 100644 --- a/arch/arm/mach-ux500/board-mop500.c +++ b/arch/arm/mach-ux500/board-mop500.c | |||
@@ -211,24 +211,6 @@ static struct ab8500_platform_data ab8500_platdata = { | |||
211 | .codec = &ab8500_codec_pdata, | 211 | .codec = &ab8500_codec_pdata, |
212 | }; | 212 | }; |
213 | 213 | ||
214 | static struct resource ab8500_resources[] = { | ||
215 | [0] = { | ||
216 | .start = IRQ_DB8500_AB8500, | ||
217 | .end = IRQ_DB8500_AB8500, | ||
218 | .flags = IORESOURCE_IRQ | ||
219 | } | ||
220 | }; | ||
221 | |||
222 | struct platform_device ab8500_device = { | ||
223 | .name = "ab8500-core", | ||
224 | .id = 0, | ||
225 | .dev = { | ||
226 | .platform_data = &ab8500_platdata, | ||
227 | }, | ||
228 | .num_resources = 1, | ||
229 | .resource = ab8500_resources, | ||
230 | }; | ||
231 | |||
232 | /* | 214 | /* |
233 | * TPS61052 | 215 | * TPS61052 |
234 | */ | 216 | */ |
@@ -443,7 +425,6 @@ static struct hash_platform_data u8500_hash1_platform_data = { | |||
443 | /* add any platform devices here - TODO */ | 425 | /* add any platform devices here - TODO */ |
444 | static struct platform_device *mop500_platform_devs[] __initdata = { | 426 | static struct platform_device *mop500_platform_devs[] __initdata = { |
445 | &mop500_gpio_keys_device, | 427 | &mop500_gpio_keys_device, |
446 | &ab8500_device, | ||
447 | }; | 428 | }; |
448 | 429 | ||
449 | #ifdef CONFIG_STE_DMA40 | 430 | #ifdef CONFIG_STE_DMA40 |
@@ -605,7 +586,6 @@ static struct platform_device *snowball_platform_devs[] __initdata = { | |||
605 | &snowball_led_dev, | 586 | &snowball_led_dev, |
606 | &snowball_key_dev, | 587 | &snowball_key_dev, |
607 | &snowball_sbnet_dev, | 588 | &snowball_sbnet_dev, |
608 | &ab8500_device, | ||
609 | }; | 589 | }; |
610 | 590 | ||
611 | static void __init mop500_init_machine(void) | 591 | static void __init mop500_init_machine(void) |
@@ -617,9 +597,8 @@ static void __init mop500_init_machine(void) | |||
617 | mop500_gpio_keys[0].gpio = GPIO_PROX_SENSOR; | 597 | mop500_gpio_keys[0].gpio = GPIO_PROX_SENSOR; |
618 | 598 | ||
619 | mop500_pinmaps_init(); | 599 | mop500_pinmaps_init(); |
620 | parent = u8500_init_devices(); | 600 | parent = u8500_init_devices(&ab8500_platdata); |
621 | 601 | ||
622 | /* FIXME: parent of ab8500 should be prcmu */ | ||
623 | for (i = 0; i < ARRAY_SIZE(mop500_platform_devs); i++) | 602 | for (i = 0; i < ARRAY_SIZE(mop500_platform_devs); i++) |
624 | mop500_platform_devs[i]->dev.parent = parent; | 603 | mop500_platform_devs[i]->dev.parent = parent; |
625 | 604 | ||
@@ -652,7 +631,7 @@ static void __init snowball_init_machine(void) | |||
652 | int i; | 631 | int i; |
653 | 632 | ||
654 | snowball_pinmaps_init(); | 633 | snowball_pinmaps_init(); |
655 | parent = u8500_init_devices(); | 634 | parent = u8500_init_devices(&ab8500_platdata); |
656 | 635 | ||
657 | for (i = 0; i < ARRAY_SIZE(snowball_platform_devs); i++) | 636 | for (i = 0; i < ARRAY_SIZE(snowball_platform_devs); i++) |
658 | snowball_platform_devs[i]->dev.parent = parent; | 637 | snowball_platform_devs[i]->dev.parent = parent; |
@@ -684,7 +663,7 @@ static void __init hrefv60_init_machine(void) | |||
684 | mop500_gpio_keys[0].gpio = HREFV60_PROX_SENSE_GPIO; | 663 | mop500_gpio_keys[0].gpio = HREFV60_PROX_SENSE_GPIO; |
685 | 664 | ||
686 | hrefv60_pinmaps_init(); | 665 | hrefv60_pinmaps_init(); |
687 | parent = u8500_init_devices(); | 666 | parent = u8500_init_devices(&ab8500_platdata); |
688 | 667 | ||
689 | for (i = 0; i < ARRAY_SIZE(mop500_platform_devs); i++) | 668 | for (i = 0; i < ARRAY_SIZE(mop500_platform_devs); i++) |
690 | mop500_platform_devs[i]->dev.parent = parent; | 669 | mop500_platform_devs[i]->dev.parent = parent; |
@@ -785,9 +764,6 @@ static const struct of_device_id u8500_local_bus_nodes[] = { | |||
785 | /* only create devices below soc node */ | 764 | /* only create devices below soc node */ |
786 | { .compatible = "stericsson,db8500", }, | 765 | { .compatible = "stericsson,db8500", }, |
787 | { .compatible = "stericsson,db8500-prcmu", }, | 766 | { .compatible = "stericsson,db8500-prcmu", }, |
788 | { .compatible = "stericsson,db8500-prcmu-regulator", }, | ||
789 | { .compatible = "stericsson,ab8500", }, | ||
790 | { .compatible = "stericsson,ab8500-regulator", }, | ||
791 | { .compatible = "simple-bus"}, | 767 | { .compatible = "simple-bus"}, |
792 | { }, | 768 | { }, |
793 | }; | 769 | }; |