diff options
author | Rob Herring <robh@kernel.org> | 2015-01-09 21:34:38 -0500 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2015-01-22 14:58:43 -0500 |
commit | 453c02c28405978b7ef5d673023e5fec19bccf3f (patch) | |
tree | 64904e66d9d9b9eaee6c5d4f2a7b609f36178b66 | |
parent | 68436d139f366bf8d37e02542d4778180516038e (diff) |
powerpc/PCI: Add struct pci_ops member names to initialization
Some instances of pci_ops initialization rely on the read/write members'
location in the struct. This is fragile and may break when adding new
members to the beginning of the struct.
No functional change.
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
CC: Arnd Bergmann <arnd@arndb.de>
CC: Benjamin Herrenschmidt <benh@kernel.crashing.org>
CC: Paul Mackerras <paulus@samba.org>
CC: Michael Ellerman <mpe@ellerman.id.au>
CC: linuxppc-dev@lists.ozlabs.org
CC: cbe-oss-dev@lists.ozlabs.org
-rw-r--r-- | arch/powerpc/platforms/cell/celleb_scc_pciex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/cell/celleb_scc_pciex.c b/arch/powerpc/platforms/cell/celleb_scc_pciex.c index f22387598040..94170e4f2ce7 100644 --- a/arch/powerpc/platforms/cell/celleb_scc_pciex.c +++ b/arch/powerpc/platforms/cell/celleb_scc_pciex.c | |||
@@ -399,8 +399,8 @@ static int scc_pciex_write_config(struct pci_bus *bus, unsigned int devfn, | |||
399 | } | 399 | } |
400 | 400 | ||
401 | static struct pci_ops scc_pciex_pci_ops = { | 401 | static struct pci_ops scc_pciex_pci_ops = { |
402 | scc_pciex_read_config, | 402 | .read = scc_pciex_read_config, |
403 | scc_pciex_write_config, | 403 | .write = scc_pciex_write_config, |
404 | }; | 404 | }; |
405 | 405 | ||
406 | static void pciex_clear_intr_all(unsigned int __iomem *base) | 406 | static void pciex_clear_intr_all(unsigned int __iomem *base) |