Skip to content

Commit 6f918ce

Browse files
robherringbjorn-helgaas
authored andcommitted
frv/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: David Howells <dhowells@redhat.com>
1 parent 97bf6af commit 6f918ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/frv/mb93090-mb00/pci-vdk.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ static int pci_frv_write_config(struct pci_bus *bus, unsigned int devfn, int whe
168168
}
169169

170170
static struct pci_ops pci_direct_frv = {
171-
pci_frv_read_config,
172-
pci_frv_write_config,
171+
.read = pci_frv_read_config,
172+
.write = pci_frv_write_config,
173173
};
174174

175175
/*

0 commit comments

Comments
 (0)