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:
@@ -21,7 +21,7 @@ compatible_show (struct device *dev, struct device_attribute *attr, char *buf)
|
||||
int length = 0;
|
||||
|
||||
of = &to_macio_device (dev)->ofdev;
|
||||
compat = of_get_property(of->node, "compatible", &cplen);
|
||||
compat = get_property(of->node, "compatible", &cplen);
|
||||
if (!compat) {
|
||||
*buf = '\0';
|
||||
return 0;
|
||||
@@ -47,7 +47,7 @@ static ssize_t modalias_show (struct device *dev, struct device_attribute *attr,
|
||||
int length;
|
||||
|
||||
of = &to_macio_device (dev)->ofdev;
|
||||
compat = of_get_property(of->node, "compatible", &cplen);
|
||||
compat = get_property(of->node, "compatible", &cplen);
|
||||
if (!compat) compat = "", cplen = 1;
|
||||
length = sprintf (buf, "of:N%sT%s", of->node->name, of->node->type);
|
||||
buf += length;
|
||||
|
Reference in New Issue
Block a user