Revert "[POWERPC] Rename get_property to of_get_property: drivers"

This reverts commit d05c7a80cf,
which included changes which should go via other subsystem
maintainers.
This commit is contained in:
Paul Mackerras
2007-04-26 22:24:31 +10:00
parent 0999ed7f57
commit a48141db68
50 changed files with 120 additions and 122 deletions

View File

@ -567,13 +567,13 @@ thermostat_init(void)
else
return -ENODEV;
prop = of_get_property(np, "hwsensor-params-version", NULL);
prop = get_property(np, "hwsensor-params-version", NULL);
printk(KERN_INFO "adt746x: version %d (%ssupported)\n", *prop,
(*prop == 1)?"":"un");
if (*prop != 1)
return -ENODEV;
prop = of_get_property(np, "reg", NULL);
prop = get_property(np, "reg", NULL);
if (!prop)
return -ENODEV;
@ -591,9 +591,9 @@ thermostat_init(void)
"limit_adjust: %d, fan_speed: %d\n",
therm_bus, therm_address, limit_adjust, fan_speed);
if (of_get_property(np, "hwsensor-location", NULL)) {
if (get_property(np, "hwsensor-location", NULL)) {
for (i = 0; i < 3; i++) {
sensor_location[i] = of_get_property(np,
sensor_location[i] = get_property(np,
"hwsensor-location", NULL) + offset;
if (sensor_location[i] == NULL)