]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
of: clean-up ifdefs in of_irq.h
authorRob Herring <rob.herring@calxeda.com>
Wed, 4 Sep 2013 15:52:57 +0000 (10:52 -0500)
committerRob Herring <rob.herring@calxeda.com>
Wed, 25 Sep 2013 02:12:32 +0000 (21:12 -0500)
commitb0b8c960ffcc5bfc82d1a09ad931673e3a36c15a
tree671a9150e3949d3d4ee7b1e31aaf473f865bbf3b
parentede2033c405bfbd6b74b113cf69c6f54cef35902
of: clean-up ifdefs in of_irq.h

Much of of_irq.h is needlessly ifdef'ed. Clean this up and minimize the
amount ifdef'ed code. This fixes some  build warnings when CONFIG_OF
is not enabled (seen on i386 and x86_64):

include/linux/of_irq.h:82:7: warning: 'struct device_node' declared inside parameter list [enabled by default]
include/linux/of_irq.h:82:7: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
include/linux/of_irq.h:87:47: warning: 'struct device_node' declared inside parameter list [enabled by default]

Compile tested on i386, sparc and arm.

Reported-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Grant Likely <grant.likely@linaro.org>
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
include/linux/of_irq.h