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

of: Fix property name in of_node_get_device_type

Commit 0413bedabc88 ("of: Add device_type access helper functions")
added a new helper not yet used in preparation for some treewide clean
up of accesses to 'device_type' properties. Unfortunately, there's an
error and 'type' was used for the property name. Fix this.

Fixes: 0413bedabc88 ("of: Add device_type access helper functions")
Cc: Frank Rowand <frowand.list@gmail.com>
Signed-off-by: Rob Herring <robh@kernel.org>

+1 -1
+1 -1
include/linux/of.h
··· 991 991 992 992 static inline const char *of_node_get_device_type(const struct device_node *np) 993 993 { 994 - return of_get_property(np, "type", NULL); 994 + return of_get_property(np, "device_type", NULL); 995 995 } 996 996 997 997 static inline bool of_node_is_type(const struct device_node *np, const char *type)