|
@@ -236,7 +236,9 @@ static struct device_node *derive_parent(const char *path)
|
|
|
|
|
|
int dlpar_attach_node(struct device_node *dn)
|
|
|
{
|
|
|
+#ifdef CONFIG_PROC_DEVICETREE
|
|
|
struct proc_dir_entry *ent;
|
|
|
+#endif
|
|
|
int rc;
|
|
|
|
|
|
of_node_set_flag(dn, OF_DYNAMIC);
|
|
@@ -267,10 +269,10 @@ int dlpar_attach_node(struct device_node *dn)
|
|
|
|
|
|
int dlpar_detach_node(struct device_node *dn)
|
|
|
{
|
|
|
+#ifdef CONFIG_PROC_DEVICETREE
|
|
|
struct device_node *parent = dn->parent;
|
|
|
struct property *prop = dn->properties;
|
|
|
|
|
|
-#ifdef CONFIG_PROC_DEVICETREE
|
|
|
while (prop) {
|
|
|
remove_proc_entry(prop->name, dn->pde);
|
|
|
prop = prop->next;
|