Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc: undeprecate the old OF device tree accessors for now

The recent addition of __deprecated to the declarations for
find_devices etc. produces a whole pile of warnings from the
ppc32 code. Since those functions still work perfectly well on
ppc32, which doesn't have hotplug support for anything in the
OF device tree, and we don't have time to fix that code now,
remove the __deprecated markings for now.

Signed-off-by: Paul Mackerras <paulus@samba.org>

+5 -5
+5 -5
include/asm-powerpc/prom.h
··· 155 155 156 156 157 157 /* OBSOLETE: Old style node lookup */ 158 - extern __deprecated struct device_node *find_devices(const char *name); 159 - extern __deprecated struct device_node *find_type_devices(const char *type); 160 - extern __deprecated struct device_node *find_path_device(const char *path); 161 - extern __deprecated struct device_node *find_compatible_devices(const char *type, 158 + extern struct device_node *find_devices(const char *name); 159 + extern struct device_node *find_type_devices(const char *type); 160 + extern struct device_node *find_path_device(const char *path); 161 + extern struct device_node *find_compatible_devices(const char *type, 162 162 const char *compat); 163 - extern __deprecated struct device_node *find_all_nodes(void); 163 + extern struct device_node *find_all_nodes(void); 164 164 165 165 /* New style node lookup */ 166 166 extern struct device_node *of_find_node_by_name(struct device_node *from,