]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
powerpc/celleb_pci: add a const qualifier
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 21 May 2012 19:57:39 +0000 (21:57 +0200)
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 24 Jul 2012 06:41:37 +0000 (08:41 +0200)
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 <u.kleine-koenig@pengutronix.de>
arch/powerpc/platforms/cell/celleb_pci.c

index 5822141aa63f3f21f73739ea1b2210971698040b..abc8af43ea7c5abf293d56abca685963de63560b 100644 (file)
@@ -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);