[PATCH] 2/5 powerpc: Rework PowerMac i2c part 2
[profile/ivi/kernel-adaptation-intel-automotive.git] / arch / powerpc / platforms / powermac / setup.c
index dc5cdc1..3b1a9d4 100644 (file)
@@ -650,7 +650,7 @@ static int pmac_check_legacy_ioport(unsigned int baseport)
 
 static int __init pmac_declare_of_platform_devices(void)
 {
-       struct device_node *np, *npp;
+       struct device_node *np;
 
        np = of_find_node_by_name(NULL, "valkyrie");
        if (np)
@@ -658,22 +658,6 @@ static int __init pmac_declare_of_platform_devices(void)
        np = of_find_node_by_name(NULL, "platinum");
        if (np)
                of_platform_device_create(np, "platinum", NULL);
-       npp = of_find_node_by_name(NULL, "uni-n");
-       if (npp == NULL)
-               npp = of_find_node_by_name(NULL, "u3");
-       if (npp == NULL)
-               npp = of_find_node_by_name(NULL, "u4");
-       if (npp) {
-               for (np = NULL; (np = of_get_next_child(npp, np)) != NULL;) {
-                       if (strncmp(np->name, "i2c", 3) == 0) {
-                               of_platform_device_create(np, "uni-n-i2c",
-                                                         NULL);
-                               of_node_put(np);
-                               break;
-                       }
-               }
-               of_node_put(npp);
-       }
         np = of_find_node_by_type(NULL, "smu");
         if (np) {
                of_platform_device_create(np, "smu", NULL);