From: Uwe Kleine-König Date: Mon, 21 May 2012 19:57:39 +0000 (+0200) Subject: powerpc/celleb_pci: add a const qualifier X-Git-Tag: next-20120725~11^2^2^2~9 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=061b183d3b7ec8a7b13c807ba32d3f8078f6b279;p=karo-tx-linux.git powerpc/celleb_pci: add a const qualifier This prepares *of_device_id.data becoming const. Without this change the following warning would occur: arch/powerpc/platforms/cell/celleb_pci.c: In function 'celleb_setup_phb': arch/powerpc/platforms/cell/celleb_pci.c:485:11: warning: assignment discards 'const' qualifier from pointer target type [enabled by default] Signed-off-by: Uwe Kleine-König --- diff --git a/arch/powerpc/platforms/cell/celleb_pci.c b/arch/powerpc/platforms/cell/celleb_pci.c index 5822141aa63f..abc8af43ea7c 100644 --- a/arch/powerpc/platforms/cell/celleb_pci.c +++ b/arch/powerpc/platforms/cell/celleb_pci.c @@ -472,7 +472,7 @@ int __init celleb_setup_phb(struct pci_controller *phb) { struct device_node *dev = phb->dn; const struct of_device_id *match; - struct celleb_phb_spec *phb_spec; + const struct celleb_phb_spec *phb_spec; int rc; match = of_match_node(celleb_phb_match, dev);