KVM: vgic: declare probe function pointer as const
authorWill Deacon <will.deacon@arm.com>
Tue, 26 Aug 2014 14:13:25 +0000 (15:13 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Wed, 27 Aug 2014 20:49:45 +0000 (22:49 +0200)
commitde56fb1923ca11f428bf557870e0faa99f38762e
treec5877756eedbcc73ab995a0e60ce594644567a91
parent1fa451bcc67fa921a04c5fac8dbcde7844d54512
KVM: vgic: declare probe function pointer as const

We extract the vgic probe function from the of_device_id data pointer,
which is const. Kill the sparse warning by ensuring that the local
function pointer is also marked as const.

Cc: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
virt/kvm/arm/vgic.c