diff options
| author | Rob Herring <robh@kernel.org> | 2015-01-09 21:34:37 -0500 |
|---|---|---|
| committer | Bjorn Helgaas <bhelgaas@google.com> | 2015-01-22 14:57:49 -0500 |
| commit | 68436d139f366bf8d37e02542d4778180516038e (patch) | |
| tree | 9612eb38869045e5d5029179cf54ddca7d3880cb /arch/mn10300 | |
| parent | ab1d7f9646fe15f9f5a10c25db6ab8c76525430b (diff) | |
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
Diffstat (limited to 'arch/mn10300')
| -rw-r--r-- | arch/mn10300/unit-asb2305/pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mn10300/unit-asb2305/pci.c b/arch/mn10300/unit-asb2305/pci.c index 6b4339f8c9c2..406cbe048471 100644 --- a/arch/mn10300/unit-asb2305/pci.c +++ b/arch/mn10300/unit-asb2305/pci.c | |||
| @@ -228,8 +228,8 @@ static int pci_ampci_write_config(struct pci_bus *bus, unsigned int devfn, | |||
| 228 | } | 228 | } |
| 229 | 229 | ||
| 230 | static struct pci_ops pci_direct_ampci = { | 230 | static struct pci_ops pci_direct_ampci = { |
| 231 | pci_ampci_read_config, | 231 | .read = pci_ampci_read_config, |
| 232 | pci_ampci_write_config, | 232 | .write = pci_ampci_write_config, |
| 233 | }; | 233 | }; |
| 234 | 234 | ||
| 235 | /* | 235 | /* |
