gicv2: Fix support for systems without secure interrupts
authorSamuel Holland <samuel@sholland.org>
Thu, 9 Nov 2017 18:07:53 +0000 (12:07 -0600)
committerAndre Przywara <andre.przywara@arm.com>
Tue, 3 Apr 2018 15:45:10 +0000 (16:45 +0100)
commit9d6d800d13fe18acf6a759c00ae981eb437eff1f
treeac7c0c5b317cb1970e1e3e8188cc2350ee595933
parentf11916bf1dfecd7ee76240eebd847681ce366a67
gicv2: Fix support for systems without secure interrupts

Accessing the interrupt_props array only happens inside a loop over
interrupt_props_num, so the GICv2 driver can cope with no secure
interrupts. As in fact we have already some asserts in place that
respect that, lets change the final place where we insist on a non-NULL
pointer to relax that.
This enables GICv2 platforms which have no need for a secure interrupt.

This only covers the non-deprecated code paths.

Also we remove a now redundant assert().

Change-Id: Id100ea978643d8558335ad28649d55743fe9bd4c
Signed-off-by: Samuel Holland <samuel@sholland.org>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
drivers/arm/gic/v2/gicv2_main.c