diff options
Diffstat (limited to 'drivers/of')
-rw-r--r-- | drivers/of/base.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/drivers/of/base.c b/drivers/of/base.c index 321d3ef05006..9c704369eda8 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c | |||
@@ -1452,16 +1452,7 @@ int of_attach_node(struct device_node *np) | |||
1452 | #ifdef CONFIG_PROC_DEVICETREE | 1452 | #ifdef CONFIG_PROC_DEVICETREE |
1453 | static void of_remove_proc_dt_entry(struct device_node *dn) | 1453 | static void of_remove_proc_dt_entry(struct device_node *dn) |
1454 | { | 1454 | { |
1455 | struct device_node *parent = dn->parent; | 1455 | proc_remove(dn->pde); |
1456 | struct property *prop = dn->properties; | ||
1457 | |||
1458 | while (prop) { | ||
1459 | remove_proc_entry(prop->name, dn->pde); | ||
1460 | prop = prop->next; | ||
1461 | } | ||
1462 | |||
1463 | if (dn->pde) | ||
1464 | remove_proc_entry(dn->pde->name, parent->pde); | ||
1465 | } | 1456 | } |
1466 | #else | 1457 | #else |
1467 | static void of_remove_proc_dt_entry(struct device_node *dn) | 1458 | static void of_remove_proc_dt_entry(struct device_node *dn) |