]> git.baikalelectronics.ru Git - kernel.git/commit
[ARM] footbridge: dc21285.c warning fixes
authorBen Dooks <ben-linux@fluff.org>
Thu, 8 Jan 2009 15:42:42 +0000 (15:42 +0000)
committerBen Dooks <ben-linux@fluff.org>
Thu, 8 Jan 2009 15:53:08 +0000 (15:53 +0000)
commit8ba75ef22524a2e512141873d9b123237191c838
tree5bbbcfa401d53fd7e1229e45891f638b67c2faf3
parentd891e16480b5e0d66b6dac178e782d5829671946
[ARM] footbridge: dc21285.c warning fixes

The dc21285 requests a number of IRQs that it doesn't really
care whether they get added. Change to use a macro that ensures
that at-least the user gets warned if they fail to add, which
also stops the warnings from __unused_result on request_irq().

dc21285.c:337: warning: ignoring return value of 'request_irq', declared with attribute warn_unused_result
dc21285.c:339: warning: ignoring return value of 'request_irq', declared with attribute warn_unused_result
dc21285.c:341: warning: ignoring return value of 'request_irq', declared with attribute warn_unused_result
dc21285.c:343: warning: ignoring return value of 'request_irq', declared with attribute warn_unused_result
dc21285.c:345: warning: ignoring return value of 'request_irq', declared with attribute warn_unused_result

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
arch/arm/mach-footbridge/dc21285.c