diff -Nru a/fs/proc/proc_devtree.c b/fs/proc/proc_devtree.c --- a/fs/proc/proc_devtree.c Tue Oct 7 01:42:40 2003 +++ b/fs/proc/proc_devtree.c Tue Oct 7 01:42:40 2003 @@ -11,6 +11,20 @@ #include #include +#ifndef HAVE_ARCH_DEVTREE_FIXUPS +static inline void set_node_proc_entry(struct device_node *np, struct proc_dir_entry *de) +{ +} + +static void inline set_node_name_link(struct device_node *np, struct proc_dir_entry *de) +{ +} + +static void inline set_node_addr_link(struct device_node *np, struct proc_dir_entry *de) +{ +} +#endif + static struct proc_dir_entry *proc_device_tree; /* @@ -44,7 +58,7 @@ /* * Process a node, adding entries for its children and its properties. */ -static void add_node(struct device_node *np, struct proc_dir_entry *de) +void proc_device_tree_add_node(struct device_node *np, struct proc_dir_entry *de) { struct property *pp; struct proc_dir_entry *ent; @@ -53,6 +67,7 @@ int l; struct proc_dir_entry *list, **lastp, *al; + set_node_proc_entry(np, de); lastp = &list; for (pp = np->properties; pp != 0; pp = pp->next) { /* @@ -82,7 +97,7 @@ break; *lastp = ent; lastp = &ent->next; - add_node(child, ent); + proc_device_tree_add_node(child, ent); /* * If we left the address part on the name, consider @@ -102,6 +117,7 @@ al = proc_symlink(child->name, de, ent->name); if (al == 0) break; + set_node_name_link(child, al); *lastp = al; lastp = &al->next; } @@ -112,6 +128,7 @@ al = proc_symlink(at, de, ent->name); if (al == 0) break; + set_node_addr_link(child, al); *lastp = al; lastp = &al->next; } @@ -135,5 +152,5 @@ printk(KERN_ERR "/proc/device-tree: can't find root\n"); return; } - add_node(root, proc_device_tree); + proc_device_tree_add_node(root, proc_device_tree); } diff -Nru a/include/linux/proc_fs.h b/include/linux/proc_fs.h --- a/include/linux/proc_fs.h Tue Oct 7 01:42:40 2003 +++ b/include/linux/proc_fs.h Tue Oct 7 01:42:40 2003 @@ -132,6 +132,7 @@ * proc_devtree.c */ extern void proc_device_tree_init(void); +extern void proc_device_tree_add_node(struct device_node *, struct proc_dir_entry *); /* * proc_rtas.c