[POWERPC] Rename get_property to of_get_property: drivers
[powerpc.git] / drivers / scsi / ibmvscsi / ibmvstgt.c
index 4368ca0..3fe831c 100644 (file)
@@ -897,22 +897,22 @@ static int get_system_info(void)
 {
        struct device_node *rootdn;
        const char *id, *model, *name;
-       unsigned int *num;
+       const unsigned int *num;
 
        rootdn = find_path_device("/");
        if (!rootdn)
                return -ENOENT;
 
-       model = get_property(rootdn, "model", NULL);
-       id = get_property(rootdn, "system-id", NULL);
+       model = of_get_property(rootdn, "model", NULL);
+       id = of_get_property(rootdn, "system-id", NULL);
        if (model && id)
                snprintf(system_id, sizeof(system_id), "%s-%s", model, id);
 
-       name = get_property(rootdn, "ibm,partition-name", NULL);
+       name = of_get_property(rootdn, "ibm,partition-name", NULL);
        if (name)
                strncpy(partition_name, name, sizeof(partition_name));
 
-       num = (unsigned int *) get_property(rootdn, "ibm,partition-no", NULL);
+       num = of_get_property(rootdn, "ibm,partition-no", NULL);
        if (num)
                partition_number = *num;