irqchip/gicv3-its: Cleanup for ITS domain initialization
authorTomasz Nowicki <tn@semihalf.com>
Mon, 12 Sep 2016 18:32:23 +0000 (20:32 +0200)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 12 Sep 2016 19:32:41 +0000 (20:32 +0100)
commitd14ae5e6bac36e88cd5deeee411104da424bc73d
tree492c771b7ad5b480ce6371b47501b0eddc863205
parentbe2021baeed64d8947a56529fc383308918ecc41
irqchip/gicv3-its: Cleanup for ITS domain initialization

There is no point to initialize ITS without having msi-controller
property in corresponding DT node. However, its_probe is checking
msi-controller presence at the end, so we can save our time and do that
check prior to its_probe call. Also, for the code clarity purpose,
we put domain initialization to separate function.

Signed-off-by: Tomasz Nowicki <tn@semihalf.com>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Reviewed-by: Hanjun Guo <hanjun.guo@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/irqchip/irq-gic-v3-its.c