irqdomain: Factor out code to add and remove items to and from the revmap
authorDavid Daney <david.daney@cavium.com>
Fri, 18 Aug 2017 00:53:32 +0000 (17:53 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 18 Aug 2017 09:21:41 +0000 (11:21 +0200)
commitb526adfe1b0531fceba44b18c156e4edf9c6205c
treea3a68ff629961b85ed4083b00ab7acbae15770bb
parent7703b08cc93b3586f9eb733f3a2b10bed634a5cf
irqdomain: Factor out code to add and remove items to and from the revmap

The code to add and remove items to and from the revmap occurs several
times.

In preparation for the follow on patches that add more uses of this
code, factor this out in to separate static functions.

Signed-off-by: David Daney <david.daney@cavium.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Alexandre Courbot <gnurou@gmail.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: linux-gpio@vger.kernel.org
Link: http://lkml.kernel.org/r/1503017616-3252-4-git-send-email-david.daney@cavium.com
kernel/irq/irqdomain.c