diff options
Diffstat (limited to 'arch/ppc/syslib/prom.c')
| -rw-r--r-- | arch/ppc/syslib/prom.c | 11 | 
1 files changed, 5 insertions, 6 deletions
diff --git a/arch/ppc/syslib/prom.c b/arch/ppc/syslib/prom.c index 278da6ee62ea..af4deace49e0 100644 --- a/arch/ppc/syslib/prom.c +++ b/arch/ppc/syslib/prom.c  | |||
| @@ -13,7 +13,6 @@ | |||
| 13 | #include <linux/kernel.h> | 13 | #include <linux/kernel.h> | 
| 14 | #include <linux/string.h> | 14 | #include <linux/string.h> | 
| 15 | #include <linux/init.h> | 15 | #include <linux/init.h> | 
| 16 | #include <linux/version.h> | ||
| 17 | #include <linux/threads.h> | 16 | #include <linux/threads.h> | 
| 18 | #include <linux/spinlock.h> | 17 | #include <linux/spinlock.h> | 
| 19 | #include <linux/ioport.h> | 18 | #include <linux/ioport.h> | 
| @@ -1165,7 +1164,7 @@ get_property(struct device_node *np, const char *name, int *lenp) | |||
| 1165 | /* | 1164 | /* | 
| 1166 | * Add a property to a node | 1165 | * Add a property to a node | 
| 1167 | */ | 1166 | */ | 
| 1168 | void | 1167 | int | 
| 1169 | prom_add_property(struct device_node* np, struct property* prop) | 1168 | prom_add_property(struct device_node* np, struct property* prop) | 
| 1170 | { | 1169 | { | 
| 1171 | struct property **next = &np->properties; | 1170 | struct property **next = &np->properties; | 
| @@ -1174,6 +1173,8 @@ prom_add_property(struct device_node* np, struct property* prop) | |||
| 1174 | while (*next) | 1173 | while (*next) | 
| 1175 | next = &(*next)->next; | 1174 | next = &(*next)->next; | 
| 1176 | *next = prop; | 1175 | *next = prop; | 
| 1176 | |||
| 1177 | return 0; | ||
| 1177 | } | 1178 | } | 
| 1178 | 1179 | ||
| 1179 | /* I quickly hacked that one, check against spec ! */ | 1180 | /* I quickly hacked that one, check against spec ! */ | 
| @@ -1335,10 +1336,8 @@ release_OF_resource(struct device_node* node, int index) | |||
| 1335 | if (!res) | 1336 | if (!res) | 
| 1336 | return -ENODEV; | 1337 | return -ENODEV; | 
| 1337 | 1338 | ||
| 1338 | if (res->name) { | 1339 | kfree(res->name); | 
| 1339 | kfree(res->name); | 1340 | res->name = NULL; | 
| 1340 | res->name = NULL; | ||
| 1341 | } | ||
| 1342 | release_resource(res); | 1341 | release_resource(res); | 
| 1343 | kfree(res); | 1342 | kfree(res); | 
| 1344 | 1343 | ||
