Skip to content

Commit 68436d1

Browse files
robherringbjorn-helgaas
authored andcommitted
mn10300/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> CC: Koichi Yasutake <yasutake.koichi@jp.panasonic.com> CC: linux-am33-list@redhat.com
1 parent ab1d7f9 commit 68436d1

File tree

1 file changed

+2
-2
lines changed
  • arch/mn10300/unit-asb2305

1 file changed

+2
-2
lines changed

arch/mn10300/unit-asb2305/pci.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,8 @@ static int pci_ampci_write_config(struct pci_bus *bus, unsigned int devfn,
228228
}
229229

230230
static struct pci_ops pci_direct_ampci = {
231-
pci_ampci_read_config,
232-
pci_ampci_write_config,
231+
.read = pci_ampci_read_config,
232+
.write = pci_ampci_write_config,
233233
};
234234

235235
/*

0 commit comments

Comments
 (0)