]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
of: fix CONFIG_OF=n prototype of of_node_full_name()
authorStephen Rothwell <sfr@canb.auug.org.au>
Thu, 15 May 2014 04:44:30 +0000 (14:44 +1000)
committerGrant Likely <grant.likely@linaro.org>
Thu, 15 May 2014 14:19:12 +0000 (15:19 +0100)
commit4c358e15553ed88bf2ddae422624624e1dd663d1
tree6564a1eb86288350e9a0aab9a72e99142767b4c7
parent582da6527da30f6e21a95c9f3f2810d46a8f406e
of: fix CONFIG_OF=n prototype of of_node_full_name()

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 <sfr@canb.auug.org.au>
Signed-off-by: Grant Likely <grant.likely@linaro.org>
include/linux/of.h