genirq/msi: Make the .prepare callback reusable
authorMarc Zyngier <marc.zyngier@arm.com>
Mon, 23 Nov 2015 08:26:05 +0000 (08:26 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Wed, 16 Dec 2015 15:29:44 +0000 (15:29 +0000)
commitb2eba39bcab9d60a6c3b80c7fc2f3dacb77eeaae
tree8f1de22deb5f8492446467b12920ca9c7e9f5b37
parentc466595c416c04036e1ba36ecdc5fe9072c76228
genirq/msi: Make the .prepare callback reusable

The .prepare callbacks are so far only called from msi_domain_alloc_irqs.
In order to reuse that code, split that code and create a
msi_domain_prepare_irqs function that the existing code can call into.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
include/linux/msi.h
kernel/irq/msi.c