diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2012-11-06 16:03:27 -0500 |
---|---|---|
committer | Grant Likely <grant.likely@linaro.org> | 2014-03-11 16:48:32 -0400 |
commit | 8357041a69b368991d1b04d9f1d297f8d71e1314 (patch) | |
tree | 54bc523897eb6c72a95d06efea5c64833fbb51a4 /include/linux/of.h | |
parent | 7e66c5c74f7348a96d5a3671f8cda4a478242679 (diff) |
of: remove /proc/device-tree
The same data is now available in sysfs, so we can remove the code
that exports it in /proc and replace it with a symlink to the sysfs
version.
Tested on versatile qemu model and mpc5200 eval board. More testing
would be appreciated.
v5: Fixed up conflicts with mainline changes
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Cc: Rob Herring <rob.herring@calxeda.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: David S. Miller <davem@davemloft.net>
Cc: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
Diffstat (limited to 'include/linux/of.h')
-rw-r--r-- | include/linux/of.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/include/linux/of.h b/include/linux/of.h index bd45be5bd565..257994a420f3 100644 --- a/include/linux/of.h +++ b/include/linux/of.h | |||
@@ -57,7 +57,6 @@ struct device_node { | |||
57 | struct device_node *sibling; | 57 | struct device_node *sibling; |
58 | struct device_node *next; /* next device of same type */ | 58 | struct device_node *next; /* next device of same type */ |
59 | struct device_node *allnext; /* next in list of all nodes */ | 59 | struct device_node *allnext; /* next in list of all nodes */ |
60 | struct proc_dir_entry *pde; /* this node's proc directory */ | ||
61 | struct kobject kobj; | 60 | struct kobject kobj; |
62 | unsigned long _flags; | 61 | unsigned long _flags; |
63 | void *data; | 62 | void *data; |
@@ -658,14 +657,4 @@ static inline int of_get_available_child_count(const struct device_node *np) | |||
658 | return num; | 657 | return num; |
659 | } | 658 | } |
660 | 659 | ||
661 | #if defined(CONFIG_PROC_FS) && defined(CONFIG_PROC_DEVICETREE) | ||
662 | extern void proc_device_tree_add_node(struct device_node *, struct proc_dir_entry *); | ||
663 | extern void proc_device_tree_add_prop(struct proc_dir_entry *pde, struct property *prop); | ||
664 | extern void proc_device_tree_remove_prop(struct proc_dir_entry *pde, | ||
665 | struct property *prop); | ||
666 | extern void proc_device_tree_update_prop(struct proc_dir_entry *pde, | ||
667 | struct property *newprop, | ||
668 | struct property *oldprop); | ||
669 | #endif | ||
670 | |||
671 | #endif /* _LINUX_OF_H */ | 660 | #endif /* _LINUX_OF_H */ |