[POWERPC] Rename get_property to of_get_property: arch/powerpc
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>
This commit is contained in:
committed by
Paul Mackerras
parent
ceef87782a
commit
e2eb63927b
@@ -60,7 +60,7 @@ static int of_device_available(struct device_node * dn)
|
||||
{
|
||||
const char *status;
|
||||
|
||||
status = get_property(dn, "status", NULL);
|
||||
status = of_get_property(dn, "status", NULL);
|
||||
|
||||
if (!status)
|
||||
return 1;
|
||||
@@ -177,7 +177,7 @@ struct pci_ops rtas_pci_ops = {
|
||||
|
||||
int is_python(struct device_node *dev)
|
||||
{
|
||||
const char *model = get_property(dev, "model", NULL);
|
||||
const char *model = of_get_property(dev, "model", NULL);
|
||||
|
||||
if (model && strstr(model, "Python"))
|
||||
return 1;
|
||||
@@ -247,7 +247,7 @@ static int phb_set_bus_ranges(struct device_node *dev,
|
||||
const int *bus_range;
|
||||
unsigned int len;
|
||||
|
||||
bus_range = get_property(dev, "bus-range", &len);
|
||||
bus_range = of_get_property(dev, "bus-range", &len);
|
||||
if (bus_range == NULL || len < 2 * sizeof(int)) {
|
||||
return 1;
|
||||
}
|
||||
@@ -309,12 +309,12 @@ void __init find_and_init_phbs(void)
|
||||
if (of_chosen) {
|
||||
const int *prop;
|
||||
|
||||
prop = get_property(of_chosen,
|
||||
prop = of_get_property(of_chosen,
|
||||
"linux,pci-probe-only", NULL);
|
||||
if (prop)
|
||||
pci_probe_only = *prop;
|
||||
|
||||
prop = get_property(of_chosen,
|
||||
prop = of_get_property(of_chosen,
|
||||
"linux,pci-assign-all-buses", NULL);
|
||||
if (prop)
|
||||
pci_assign_all_buses = *prop;
|
||||
|
Reference in New Issue
Block a user