genirq/generic_chip: Get rid of code duplication
authorSebastian Frias <sf84@laposte.net>
Mon, 1 Aug 2016 14:27:53 +0000 (16:27 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 2 Sep 2016 16:06:49 +0000 (18:06 +0200)
commitf0c450eaa364cb77c778f2a46ee2aa3ff464b332
tree59ed5ac565a0efedf751ec520b15bbc09648f72a
parent48e0fba842c7daab80f3351398146368c5504a27
genirq/generic_chip: Get rid of code duplication

irq_map_generic_chip() contains about the same code as
irq_get_domain_generic_chip() except for the return values.

Split out the irq_get_domain_generic_chip() implementation so it can be
reused.

[ tglx: Removed the extra churn in irq_get_domain_generic_chip() callers
   and massaged changelog ]

Signed-off-by: Sebastian Frias <sf84@laposte.net>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Mason <slash.tmp@free.fr>
Cc: Jason Cooper <jason@lakedaemon.net>
Link: http://lkml.kernel.org/r/579F5C69.8070006@laposte.net
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/irq/generic-chip.c