diff options
author | Will Deacon <will.deacon@arm.com> | 2014-08-26 10:13:25 -0400 |
---|---|---|
committer | Christoffer Dall <christoffer.dall@linaro.org> | 2014-08-27 16:49:45 -0400 |
commit | de56fb1923ca11f428bf557870e0faa99f38762e (patch) | |
tree | c5877756eedbcc73ab995a0e60ce594644567a91 /virt | |
parent | 1fa451bcc67fa921a04c5fac8dbcde7844d54512 (diff) |
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>
Diffstat (limited to 'virt')
-rw-r--r-- | virt/kvm/arm/vgic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/virt/kvm/arm/vgic.c b/virt/kvm/arm/vgic.c index d1cfe672b9d7..efe6eee2e7eb 100644 --- a/virt/kvm/arm/vgic.c +++ b/virt/kvm/arm/vgic.c | |||
@@ -1557,8 +1557,8 @@ static const struct of_device_id vgic_ids[] = { | |||
1557 | int kvm_vgic_hyp_init(void) | 1557 | int kvm_vgic_hyp_init(void) |
1558 | { | 1558 | { |
1559 | const struct of_device_id *matched_id; | 1559 | const struct of_device_id *matched_id; |
1560 | int (*vgic_probe)(struct device_node *,const struct vgic_ops **, | 1560 | const int (*vgic_probe)(struct device_node *,const struct vgic_ops **, |
1561 | const struct vgic_params **); | 1561 | const struct vgic_params **); |
1562 | struct device_node *vgic_node; | 1562 | struct device_node *vgic_node; |
1563 | int ret; | 1563 | int ret; |
1564 | 1564 | ||