From: Rob Herring Date: Sat, 10 Jan 2015 02:34:37 +0000 (-0600) Subject: mn10300/PCI: Add struct pci_ops member names to initialization X-Git-Tag: v4.0-rc1~144^2~3^2~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=68436d139f366bf8d37e02542d4778180516038e;p=platform%2Fkernel%2Flinux-exynos.git 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 Signed-off-by: Bjorn Helgaas CC: David Howells CC: Koichi Yasutake CC: linux-am33-list@redhat.com --- diff --git a/arch/mn10300/unit-asb2305/pci.c b/arch/mn10300/unit-asb2305/pci.c index 6b4339f..406cbe0 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, } static struct pci_ops pci_direct_ampci = { - pci_ampci_read_config, - pci_ampci_write_config, + .read = pci_ampci_read_config, + .write = pci_ampci_write_config, }; /*