Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 453c02c2 authored by Rob Herring's avatar Rob Herring Committed by Bjorn Helgaas
Browse files

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: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarBjorn 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
parent 68436d13
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -399,8 +399,8 @@ static int scc_pciex_write_config(struct pci_bus *bus, unsigned int devfn,
}
}


static struct pci_ops scc_pciex_pci_ops = {
static struct pci_ops scc_pciex_pci_ops = {
	scc_pciex_read_config,
	.read = scc_pciex_read_config,
	scc_pciex_write_config,
	.write = scc_pciex_write_config,
};
};


static void pciex_clear_intr_all(unsigned int __iomem *base)
static void pciex_clear_intr_all(unsigned int __iomem *base)