diff options
Diffstat (limited to 'arch/powerpc/platforms/powermac/feature.c')
-rw-r--r-- | arch/powerpc/platforms/powermac/feature.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/arch/powerpc/platforms/powermac/feature.c b/arch/powerpc/platforms/powermac/feature.c index 24cc50c1774a..103fcc4c5605 100644 --- a/arch/powerpc/platforms/powermac/feature.c +++ b/arch/powerpc/platforms/powermac/feature.c | |||
@@ -1057,8 +1057,8 @@ core99_reset_cpu(struct device_node *node, long param, long value) | |||
1057 | if (np == NULL) | 1057 | if (np == NULL) |
1058 | return -ENODEV; | 1058 | return -ENODEV; |
1059 | for (np = np->child; np != NULL; np = np->sibling) { | 1059 | for (np = np->child; np != NULL; np = np->sibling) { |
1060 | const u32 *num = get_property(np, "reg", NULL); | 1060 | const u32 *num = of_get_property(np, "reg", NULL); |
1061 | const u32 *rst = get_property(np, "soft-reset", NULL); | 1061 | const u32 *rst = of_get_property(np, "soft-reset", NULL); |
1062 | if (num == NULL || rst == NULL) | 1062 | if (num == NULL || rst == NULL) |
1063 | continue; | 1063 | continue; |
1064 | if (param == *num) { | 1064 | if (param == *num) { |
@@ -1095,7 +1095,7 @@ core99_usb_enable(struct device_node *node, long param, long value) | |||
1095 | macio->type != macio_intrepid) | 1095 | macio->type != macio_intrepid) |
1096 | return -ENODEV; | 1096 | return -ENODEV; |
1097 | 1097 | ||
1098 | prop = get_property(node, "AAPL,clock-id", NULL); | 1098 | prop = of_get_property(node, "AAPL,clock-id", NULL); |
1099 | if (!prop) | 1099 | if (!prop) |
1100 | return -ENODEV; | 1100 | return -ENODEV; |
1101 | if (strncmp(prop, "usb0u048", 8) == 0) | 1101 | if (strncmp(prop, "usb0u048", 8) == 0) |
@@ -1506,8 +1506,8 @@ static long g5_reset_cpu(struct device_node *node, long param, long value) | |||
1506 | if (np == NULL) | 1506 | if (np == NULL) |
1507 | return -ENODEV; | 1507 | return -ENODEV; |
1508 | for (np = np->child; np != NULL; np = np->sibling) { | 1508 | for (np = np->child; np != NULL; np = np->sibling) { |
1509 | const u32 *num = get_property(np, "reg", NULL); | 1509 | const u32 *num = of_get_property(np, "reg", NULL); |
1510 | const u32 *rst = get_property(np, "soft-reset", NULL); | 1510 | const u32 *rst = of_get_property(np, "soft-reset", NULL); |
1511 | if (num == NULL || rst == NULL) | 1511 | if (num == NULL || rst == NULL) |
1512 | continue; | 1512 | continue; |
1513 | if (param == *num) { | 1513 | if (param == *num) { |
@@ -2411,7 +2411,7 @@ static int __init probe_motherboard(void) | |||
2411 | */ | 2411 | */ |
2412 | dt = find_devices("device-tree"); | 2412 | dt = find_devices("device-tree"); |
2413 | if (dt != NULL) | 2413 | if (dt != NULL) |
2414 | model = get_property(dt, "model", NULL); | 2414 | model = of_get_property(dt, "model", NULL); |
2415 | for(i=0; model && i<(sizeof(pmac_mb_defs)/sizeof(struct pmac_mb_def)); i++) { | 2415 | for(i=0; model && i<(sizeof(pmac_mb_defs)/sizeof(struct pmac_mb_def)); i++) { |
2416 | if (strcmp(model, pmac_mb_defs[i].model_string) == 0) { | 2416 | if (strcmp(model, pmac_mb_defs[i].model_string) == 0) { |
2417 | pmac_mb = pmac_mb_defs[i]; | 2417 | pmac_mb = pmac_mb_defs[i]; |
@@ -2509,7 +2509,7 @@ found: | |||
2509 | if (np->sibling) | 2509 | if (np->sibling) |
2510 | break; | 2510 | break; |
2511 | /* Nap mode not supported if flush-on-lock property is present */ | 2511 | /* Nap mode not supported if flush-on-lock property is present */ |
2512 | if (get_property(np, "flush-on-lock", NULL)) | 2512 | if (of_get_property(np, "flush-on-lock", NULL)) |
2513 | break; | 2513 | break; |
2514 | powersave_nap = 1; | 2514 | powersave_nap = 1; |
2515 | printk(KERN_DEBUG "Processor NAP mode on idle enabled.\n"); | 2515 | printk(KERN_DEBUG "Processor NAP mode on idle enabled.\n"); |
@@ -2558,7 +2558,7 @@ static void __init probe_uninorth(void) | |||
2558 | if (uninorth_node == NULL) | 2558 | if (uninorth_node == NULL) |
2559 | return; | 2559 | return; |
2560 | 2560 | ||
2561 | addrp = get_property(uninorth_node, "reg", NULL); | 2561 | addrp = of_get_property(uninorth_node, "reg", NULL); |
2562 | if (addrp == NULL) | 2562 | if (addrp == NULL) |
2563 | return; | 2563 | return; |
2564 | address = of_translate_address(uninorth_node, addrp); | 2564 | address = of_translate_address(uninorth_node, addrp); |
@@ -2642,7 +2642,7 @@ static void __init probe_one_macio(const char *name, const char *compat, int typ | |||
2642 | return; | 2642 | return; |
2643 | } | 2643 | } |
2644 | if (type == macio_keylargo || type == macio_keylargo2) { | 2644 | if (type == macio_keylargo || type == macio_keylargo2) { |
2645 | const u32 *did = get_property(node, "device-id", NULL); | 2645 | const u32 *did = of_get_property(node, "device-id", NULL); |
2646 | if (*did == 0x00000025) | 2646 | if (*did == 0x00000025) |
2647 | type = macio_pangea; | 2647 | type = macio_pangea; |
2648 | if (*did == 0x0000003e) | 2648 | if (*did == 0x0000003e) |
@@ -2655,7 +2655,7 @@ static void __init probe_one_macio(const char *name, const char *compat, int typ | |||
2655 | macio_chips[i].base = base; | 2655 | macio_chips[i].base = base; |
2656 | macio_chips[i].flags = MACIO_FLAG_SCCB_ON | MACIO_FLAG_SCCB_ON; | 2656 | macio_chips[i].flags = MACIO_FLAG_SCCB_ON | MACIO_FLAG_SCCB_ON; |
2657 | macio_chips[i].name = macio_names[type]; | 2657 | macio_chips[i].name = macio_names[type]; |
2658 | revp = get_property(node, "revision-id", NULL); | 2658 | revp = of_get_property(node, "revision-id", NULL); |
2659 | if (revp) | 2659 | if (revp) |
2660 | macio_chips[i].rev = *revp; | 2660 | macio_chips[i].rev = *revp; |
2661 | printk(KERN_INFO "Found a %s mac-io controller, rev: %d, mapped at 0x%p\n", | 2661 | printk(KERN_INFO "Found a %s mac-io controller, rev: %d, mapped at 0x%p\n", |
@@ -2706,8 +2706,8 @@ initial_serial_shutdown(struct device_node *np) | |||
2706 | int port_type = PMAC_SCC_ASYNC; | 2706 | int port_type = PMAC_SCC_ASYNC; |
2707 | int modem = 0; | 2707 | int modem = 0; |
2708 | 2708 | ||
2709 | slots = get_property(np, "slot-names", &len); | 2709 | slots = of_get_property(np, "slot-names", &len); |
2710 | conn = get_property(np, "AAPL,connector", &len); | 2710 | conn = of_get_property(np, "AAPL,connector", &len); |
2711 | if (conn && (strcmp(conn, "infrared") == 0)) | 2711 | if (conn && (strcmp(conn, "infrared") == 0)) |
2712 | port_type = PMAC_SCC_IRDA; | 2712 | port_type = PMAC_SCC_IRDA; |
2713 | else if (device_is_compatible(np, "cobalt")) | 2713 | else if (device_is_compatible(np, "cobalt")) |