1
0
Fork 0

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>
hifive-unleashed-5.1
Kuninori Morimoto 2016-05-25 01:15:04 +00:00 committed by Rob Herring
parent aaaab56dba
commit e93aeeae0b
1 changed files with 1 additions and 1 deletions

View 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,