diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2007-04-03 08:40:39 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-04-12 13:55:19 -0400 |
commit | d05c7a80cf39ae7d0f8d0c3e47c93d51fcd393d3 (patch) | |
tree | 6b51334a2427c0392c391d0e0bfab0ab9aae690e /drivers/scsi | |
parent | c4f55b394505fff6ad831d17e36e02dde1c3a8d7 (diff) |
[POWERPC] Rename get_property to of_get_property: drivers
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/ibmvscsi/ibmvstgt.c | 8 | ||||
-rw-r--r-- | drivers/scsi/ibmvscsi/rpa_vscsi.c | 4 | ||||
-rw-r--r-- | drivers/scsi/mac53c94.c | 2 | ||||
-rw-r--r-- | drivers/scsi/mesh.c | 2 |
4 files changed, 8 insertions, 8 deletions
diff --git a/drivers/scsi/ibmvscsi/ibmvstgt.c b/drivers/scsi/ibmvscsi/ibmvstgt.c index f65f21da3fd8..3fe831cdb74e 100644 --- a/drivers/scsi/ibmvscsi/ibmvstgt.c +++ b/drivers/scsi/ibmvscsi/ibmvstgt.c | |||
@@ -903,16 +903,16 @@ static int get_system_info(void) | |||
903 | if (!rootdn) | 903 | if (!rootdn) |
904 | return -ENOENT; | 904 | return -ENOENT; |
905 | 905 | ||
906 | model = get_property(rootdn, "model", NULL); | 906 | model = of_get_property(rootdn, "model", NULL); |
907 | id = get_property(rootdn, "system-id", NULL); | 907 | id = of_get_property(rootdn, "system-id", NULL); |
908 | if (model && id) | 908 | if (model && id) |
909 | snprintf(system_id, sizeof(system_id), "%s-%s", model, id); | 909 | snprintf(system_id, sizeof(system_id), "%s-%s", model, id); |
910 | 910 | ||
911 | name = get_property(rootdn, "ibm,partition-name", NULL); | 911 | name = of_get_property(rootdn, "ibm,partition-name", NULL); |
912 | if (name) | 912 | if (name) |
913 | strncpy(partition_name, name, sizeof(partition_name)); | 913 | strncpy(partition_name, name, sizeof(partition_name)); |
914 | 914 | ||
915 | num = get_property(rootdn, "ibm,partition-no", NULL); | 915 | num = of_get_property(rootdn, "ibm,partition-no", NULL); |
916 | if (num) | 916 | if (num) |
917 | partition_number = *num; | 917 | partition_number = *num; |
918 | 918 | ||
diff --git a/drivers/scsi/ibmvscsi/rpa_vscsi.c b/drivers/scsi/ibmvscsi/rpa_vscsi.c index 227c0f2f4d74..9bbb69ca73ee 100644 --- a/drivers/scsi/ibmvscsi/rpa_vscsi.c +++ b/drivers/scsi/ibmvscsi/rpa_vscsi.c | |||
@@ -162,11 +162,11 @@ static void gather_partition_info(void) | |||
162 | return; | 162 | return; |
163 | } | 163 | } |
164 | 164 | ||
165 | ppartition_name = get_property(rootdn, "ibm,partition-name", NULL); | 165 | ppartition_name = of_get_property(rootdn, "ibm,partition-name", NULL); |
166 | if (ppartition_name) | 166 | if (ppartition_name) |
167 | strncpy(partition_name, ppartition_name, | 167 | strncpy(partition_name, ppartition_name, |
168 | sizeof(partition_name)); | 168 | sizeof(partition_name)); |
169 | p_number_ptr = get_property(rootdn, "ibm,partition-no", NULL); | 169 | p_number_ptr = of_get_property(rootdn, "ibm,partition-no", NULL); |
170 | if (p_number_ptr) | 170 | if (p_number_ptr) |
171 | partition_number = *p_number_ptr; | 171 | partition_number = *p_number_ptr; |
172 | } | 172 | } |
diff --git a/drivers/scsi/mac53c94.c b/drivers/scsi/mac53c94.c index 753d88306cd1..5806ede120a4 100644 --- a/drivers/scsi/mac53c94.c +++ b/drivers/scsi/mac53c94.c | |||
@@ -471,7 +471,7 @@ static int mac53c94_probe(struct macio_dev *mdev, const struct of_device_id *mat | |||
471 | goto out_free; | 471 | goto out_free; |
472 | } | 472 | } |
473 | 473 | ||
474 | clkprop = get_property(node, "clock-frequency", &proplen); | 474 | clkprop = of_get_property(node, "clock-frequency", &proplen); |
475 | if (clkprop == NULL || proplen != sizeof(int)) { | 475 | if (clkprop == NULL || proplen != sizeof(int)) { |
476 | printk(KERN_ERR "%s: can't get clock frequency, " | 476 | printk(KERN_ERR "%s: can't get clock frequency, " |
477 | "assuming 25MHz\n", node->full_name); | 477 | "assuming 25MHz\n", node->full_name); |
diff --git a/drivers/scsi/mesh.c b/drivers/scsi/mesh.c index 1fd3c7590d31..cf3666d7d97a 100644 --- a/drivers/scsi/mesh.c +++ b/drivers/scsi/mesh.c | |||
@@ -1947,7 +1947,7 @@ static int mesh_probe(struct macio_dev *mdev, const struct of_device_id *match) | |||
1947 | ms->tgts[tgt].current_req = NULL; | 1947 | ms->tgts[tgt].current_req = NULL; |
1948 | } | 1948 | } |
1949 | 1949 | ||
1950 | if ((cfp = get_property(mesh, "clock-frequency", NULL))) | 1950 | if ((cfp = of_get_property(mesh, "clock-frequency", NULL))) |
1951 | ms->clk_freq = *cfp; | 1951 | ms->clk_freq = *cfp; |
1952 | else { | 1952 | else { |
1953 | printk(KERN_INFO "mesh: assuming 50MHz clock frequency\n"); | 1953 | printk(KERN_INFO "mesh: assuming 50MHz clock frequency\n"); |