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>
Thu, 2 Oct 2014 15:19:13 +0000 (17:19 +0200)
commit8ec715912ec282c0c560407fe72ae80b14c8d320
treeaf996540cfb0ee124185249381b210a6a5b0c731
parent02b1b15d1265067d246eb8017c27c75d2fac5dae
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>
(cherry picked from commit de56fb1923ca11f428bf557870e0faa99f38762e)
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
virt/kvm/arm/vgic.c