summaryrefslogtreecommitdiffstats
path: root/arch/mips/pci/pci-bcm1480.c
diff options
context:
space:
mode:
authorRob Herring2015-01-10 03:34:36 +0100
committerRalf Baechle2015-01-16 15:04:38 +0100
commit7b09777c187dcbe3e0f4f53890eb2f6953801d88 (patch)
tree8f1a131f68d8f83d53e322e2c7b21c4883edb6d8 /arch/mips/pci/pci-bcm1480.c
parentMIPS: Remove unused dt_setup_arch() (diff)
downloadkernel-qcow2-linux-7b09777c187dcbe3e0f4f53890eb2f6953801d88.tar.gz
kernel-qcow2-linux-7b09777c187dcbe3e0f4f53890eb2f6953801d88.tar.xz
kernel-qcow2-linux-7b09777c187dcbe3e0f4f53890eb2f6953801d88.zip
MIPS: 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. [ralf@linux-mips.org: indent = with tabs for consistency.] Signed-off-by: Rob Herring <robh@kernel.org> Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org Cc: Arnd Bergmann <arnd@arndb.de> Cc: linux-pci@vger.kernel.org Cc: Bjorn Helgaas <bhelgaas@google.com> Patchwork: https://patchwork.linux-mips.org/patch/8915/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/pci/pci-bcm1480.c')
-rw-r--r--arch/mips/pci/pci-bcm1480.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/pci/pci-bcm1480.c b/arch/mips/pci/pci-bcm1480.c
index 5ec2a7bae02c..f97e169393bc 100644
--- a/arch/mips/pci/pci-bcm1480.c
+++ b/arch/mips/pci/pci-bcm1480.c
@@ -173,8 +173,8 @@ static int bcm1480_pcibios_write(struct pci_bus *bus, unsigned int devfn,
}
struct pci_ops bcm1480_pci_ops = {
- bcm1480_pcibios_read,
- bcm1480_pcibios_write,
+ .read = bcm1480_pcibios_read,
+ .write = bcm1480_pcibios_write,
};
static struct resource bcm1480_mem_resource = {