diff options
Diffstat (limited to 'arch/powerpc/platforms/powermac/setup.c')
-rw-r--r-- | arch/powerpc/platforms/powermac/setup.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/arch/powerpc/platforms/powermac/setup.c b/arch/powerpc/platforms/powermac/setup.c index dc5cdc1484e8..3b1a9d4fcbc6 100644 --- a/arch/powerpc/platforms/powermac/setup.c +++ b/arch/powerpc/platforms/powermac/setup.c | |||
@@ -650,7 +650,7 @@ static int pmac_check_legacy_ioport(unsigned int baseport) | |||
650 | 650 | ||
651 | static int __init pmac_declare_of_platform_devices(void) | 651 | static int __init pmac_declare_of_platform_devices(void) |
652 | { | 652 | { |
653 | struct device_node *np, *npp; | 653 | struct device_node *np; |
654 | 654 | ||
655 | np = of_find_node_by_name(NULL, "valkyrie"); | 655 | np = of_find_node_by_name(NULL, "valkyrie"); |
656 | if (np) | 656 | if (np) |
@@ -658,22 +658,6 @@ static int __init pmac_declare_of_platform_devices(void) | |||
658 | np = of_find_node_by_name(NULL, "platinum"); | 658 | np = of_find_node_by_name(NULL, "platinum"); |
659 | if (np) | 659 | if (np) |
660 | of_platform_device_create(np, "platinum", NULL); | 660 | of_platform_device_create(np, "platinum", NULL); |
661 | npp = of_find_node_by_name(NULL, "uni-n"); | ||
662 | if (npp == NULL) | ||
663 | npp = of_find_node_by_name(NULL, "u3"); | ||
664 | if (npp == NULL) | ||
665 | npp = of_find_node_by_name(NULL, "u4"); | ||
666 | if (npp) { | ||
667 | for (np = NULL; (np = of_get_next_child(npp, np)) != NULL;) { | ||
668 | if (strncmp(np->name, "i2c", 3) == 0) { | ||
669 | of_platform_device_create(np, "uni-n-i2c", | ||
670 | NULL); | ||
671 | of_node_put(np); | ||
672 | break; | ||
673 | } | ||
674 | } | ||
675 | of_node_put(npp); | ||
676 | } | ||
677 | np = of_find_node_by_type(NULL, "smu"); | 661 | np = of_find_node_by_type(NULL, "smu"); |
678 | if (np) { | 662 | if (np) { |
679 | of_platform_device_create(np, "smu", NULL); | 663 | of_platform_device_create(np, "smu", NULL); |