]> git.karo-electronics.de Git - linux-beck.git/commitdiff
of: add missing const for of_parse_phandle_with_args() in !CONFIG_OF
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 25 May 2016 01:15:04 +0000 (01:15 +0000)
committerRob Herring <robh@kernel.org>
Fri, 3 Jun 2016 12:27:55 +0000 (07:27 -0500)
commit 93c667ca2598bd84f1bd3f2fa176af69707699fe
("of: *node argument to of_parse_phandle_with_args should be const")
changed to const for struct device node *np,
but it cares CONFIG_OF case only, !CONFIG_OF case need it too.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Rob Herring <robh@kernel.org>
include/linux/of.h

index c7292e8ea080118b9d09542a875b95ebbddc31b3..74eb28cadbef032017ae12fe4d11ab4f70996d63 100644 (file)
@@ -614,7 +614,7 @@ static inline struct device_node *of_parse_phandle(const struct device_node *np,
        return NULL;
 }
 
-static inline int of_parse_phandle_with_args(struct device_node *np,
+static inline int of_parse_phandle_with_args(const struct device_node *np,
                                             const char *list_name,
                                             const char *cells_name,
                                             int index,