powerpc+of: Rename the drivers/of prom_* functions to of_*

Rename the prom_*_property routines of the generic OF code to of_*_property.
This brings them in line with the naming used by the rest of the OF code.

Signed-off-by: Nathan Fontenot <[email protected]>
Acked-by: Geoff Levand <[email protected]>
Acked-by: Rob Herring <[email protected]>
Acked-by: Grant Likely <[email protected]>
Signed-off-by: Benjamin Herrenschmidt <[email protected]>
This commit is contained in:
Nathan Fontenot 2012-10-02 16:58:46 +00:00 • committed by Benjamin Herrenschmidt
commit 79d1c71295
12 changed files with 37 additions and 39 deletions

View file

@ -1047,9 +1047,9 @@ static int of_property_notify(int action, struct device_node *np,
#endif
/**
* prom_add_property - Add a property to a node
* of_add_property - Add a property to a node
*/
int prom_add_property(struct device_node *np, struct property *prop)
int of_add_property(struct device_node *np, struct property *prop)
{
struct property **next;
unsigned long flags;
@ -1083,14 +1083,14 @@ int prom_add_property(struct device_node *np, struct property *prop)
}
/**
* prom_remove_property - Remove a property from a node.
* of_remove_property - Remove a property from a node.
*
* Note that we don't actually remove it, since we have given out
* who-knows-how-many pointers to the data using get-property.
* Instead we just move the property to the "dead properties"
* list, so it won't be found any more.
*/
int prom_remove_property(struct device_node *np, struct property *prop)
int of_remove_property(struct device_node *np, struct property *prop)
{
struct property **next;
unsigned long flags;
@ -1129,7 +1129,7 @@ int prom_remove_property(struct device_node *np, struct property *prop)
}
/*
* prom_update_property - Update a property in a node, if the property does
* of_update_property - Update a property in a node, if the property does
* not exist, add it.
*
* Note that we don't actually remove it, since we have given out
@ -1137,8 +1137,7 @@ int prom_remove_property(struct device_node *np, struct property *prop)
* Instead we just move the property to the "dead properties" list,
* and add the new property to the property list
*/
int prom_update_property(struct device_node *np,
struct property *newprop)
int of_update_property(struct device_node *np, struct property *newprop)
{
struct property **next, *oldprop;
unsigned long flags;
@ -1153,7 +1152,7 @@ int prom_update_property(struct device_node *np,
oldprop = of_find_property(np, newprop->name, NULL);
if (!oldprop)
return prom_add_property(np, newprop);
return of_add_property(np, newprop);
write_lock_irqsave(&devtree_lock, flags);
next = &np->properties;