frv/PCI: Add struct pci_ops member names to initialization
authorRob Herring <robh@kernel.org>
Sat, 10 Jan 2015 02:34:35 +0000 (20:34 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 22 Jan 2015 19:54:08 +0000 (13:54 -0600)
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: David Howells <dhowells@redhat.com>
arch/frv/mb93090-mb00/pci-vdk.c

index efa5d65b000789e9bc7615d1e1e4335be2eb06c6..b073f4d771a53c843709395e69228cca30edac01 100644 (file)
@@ -168,8 +168,8 @@ static int pci_frv_write_config(struct pci_bus *bus, unsigned int devfn, int whe
 }
 
 static struct pci_ops pci_direct_frv = {
-       pci_frv_read_config,
-       pci_frv_write_config,
+       .read = pci_frv_read_config,
+       .write = pci_frv_write_config,
 };
 
 /*