From: Rob Herring Date: Mon, 1 Oct 2018 15:54:51 +0000 (-0500) Subject: of: Fix property name in of_node_get_device_type X-Git-Tag: android-x86-9.0-r1~1^2~123^2~592 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=b3e4010f18cda4088066d2e2cea3e73379d88281;p=android-x86%2Fkernel.git of: Fix property name in of_node_get_device_type [ Upstream commit 5d5a0ab1a7918fce5ca5c0fb1871a3e2000f85de ] 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 Signed-off-by: Rob Herring Signed-off-by: Sasha Levin --- diff --git a/include/linux/of.h b/include/linux/of.h index d5a863c1ee39..dac0201eacef 100644 --- a/include/linux/of.h +++ b/include/linux/of.h @@ -1001,7 +1001,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)