Skip to contentSkip to conversation

of: Fix property name in of_node_get_device_type

PATCH New Rob Herring 1 participant 1 message Oct 1, 2018 Device tree

lore
Share & tools
lore

Rob Herring

author maintainer
#0 lore raw

PATCH 1/1 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 <[email protected]>
---
 include/linux/of.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/of.h +1 -1
index f581531d797e..04cef4490efc 100644
@@ -991,7 +991,7 @@ static inline struct device_node *of_find_matching_node(
 
 static inline const char *of_node_get_device_type(const struct device_node *np)
 {
-	return of_get_property(np, "type", NULL);
+	return of_get_property(np, "device_type", NULL);
 }
 
 static inline bool of_node_is_type(const struct device_node *np, const char *type)
Signature · 1 line
2.17.1