]> git.baikalelectronics.ru Git - kernel.git/commit
of: define struct device in of_platform.h if !OF_DEVICE and !OF_ADDRESS
authorJonas Gorski <jogo@openwrt.org>
Wed, 19 Dec 2012 15:10:09 +0000 (09:10 -0600)
committerGrant Likely <grant.likely@secretlab.ca>
Wed, 19 Dec 2012 16:15:17 +0000 (16:15 +0000)
commit26ce6c5536d0e36fc19259d48f10c3ca6bc3b67f
treea8f357f0352f4dc7408bfc16d88664783d2b5f4d
parentda5b16e73150005f2bdd3bc0a18c5f815c2e8eb0
of: define struct device in of_platform.h if !OF_DEVICE and !OF_ADDRESS

Fixes the following warning:

include/linux/of_platform.h:106:13: warning: 'struct device' declared
inside parameter list [enabled by default]
include/linux/of_platform.h:106:13: warning: its scope is only this
definition or declaration, which is probably not what you want [enabled
by default]

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
Signed-off-by: Rob Herring <robherring2@gmail.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
include/linux/of_platform.h