Skip to content

Commit

Permalink
of: fix CONFIG_OF=n prototype of of_node_full_name()
Browse files Browse the repository at this point in the history
Make the CONFIG_OF=n prototpe of of_node_full_name() mateh the CONFIG_OF=y
version.

Fixes compile warnings like this:

sound/soc/soc-core.c: In function 'soc_check_aux_dev':
sound/soc/soc-core.c:1667:3: warning: passing argument 1 of 'of_node_full_name' discards 'const' qualifier from pointer target type [enabled by default]
   codecname = of_node_full_name(aux_dev->codec_of_node);

when CONFIG_OF is not defined.

Signed-off-by: Stephen Rothwell <[email protected]>
Signed-off-by: Grant Likely <[email protected]>
  • Loading branch information
sfrothwell authored and glikely committed May 15, 2014
1 parent 582da65 commit 4c358e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/of.h
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ int of_device_is_stdout_path(struct device_node *dn);

#else /* CONFIG_OF */

static inline const char* of_node_full_name(struct device_node *np)
static inline const char* of_node_full_name(const struct device_node *np)
{
return "<no-node>";
}
Expand Down

0 comments on commit 4c358e1

Please sign in to comment.