irqchip/gic: Pass GIC pointer to save/restore functions
authorJon Hunter <jonathanh@nvidia.com>
Tue, 10 May 2016 15:14:43 +0000 (16:14 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Wed, 11 May 2016 09:12:43 +0000 (10:12 +0100)
commit6e5b5924d9a897062527b6fc9b06f31f7bfd5744
treed15998d2162addf6a9c49d0f656637356e487fb9
parentdc9722cc57eba336038b2ade111436656c5a87d0
irqchip/gic: Pass GIC pointer to save/restore functions

Instead of passing the GIC index to the save/restore functions pass a
pointer to the GIC chip data. This will allow these save/restore
functions to be re-used by a platform driver where the GIC chip data
structure is allocated dynamically and so there is no applicable index
for identifying the GIC.

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/irqchip/irq-gic.c