mirror of https://gitee.com/openkylin/linux.git
of: add missing const for of_parse_phandle_with_args() in !CONFIG_OF
commit 93c667ca25
("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>
This commit is contained in:
parent
aaaab56dba
commit
e93aeeae0b
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue