powerpc/mpic: Cleanup mpic_find() implementation
authorTony Breeds <tony@bakeyournoodle.com>
Tue, 7 Apr 2009 18:26:54 +0000 (18:26 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 21 May 2009 05:42:56 +0000 (15:42 +1000)
commitd69a78d7daada190b42269a73daabe32a5e138a6
tree6b5f61193e75734076e12b2e2ffdc68336ebef08
parent805e324b7fbddf9f420f0ea09eb61c21777b0526
powerpc/mpic: Cleanup mpic_find() implementation

mpic_find() was overloaded to do two things, finding the mpic instance
for a given interrupt and returning if it's an IPI. Instead we introduce
mpic_is_ipi() and simplify mpic_find() to just return the mpic instance

Also silences the warning:
arch/powerpc/sysdev/mpic.c: In function 'mpic_irq_set_priority':
arch/powerpc/sysdev/mpic.c:1382: warning: 'is_ipi' may be used uninitialized in this function

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
Acked-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/sysdev/mpic.c