Skip to content

Commit

Permalink
[POWERPC] powermac pci_ops: Use named structure member initializers
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Lynch <ntl@pobox.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Nathan Lynch authored and Paul Mackerras committed Aug 17, 2007
1 parent 1bb8c62 commit 3fac10e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions arch/powerpc/platforms/powermac/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,8 @@ static int macrisc_write_config(struct pci_bus *bus, unsigned int devfn,

static struct pci_ops macrisc_pci_ops =
{
macrisc_read_config,
macrisc_write_config
.read = macrisc_read_config,
.write = macrisc_write_config,
};

#ifdef CONFIG_PPC32
Expand Down Expand Up @@ -280,8 +280,8 @@ chaos_write_config(struct pci_bus *bus, unsigned int devfn, int offset,

static struct pci_ops chaos_pci_ops =
{
chaos_read_config,
chaos_write_config
.read = chaos_read_config,
.write = chaos_write_config,
};

static void __init setup_chaos(struct pci_controller *hose,
Expand Down Expand Up @@ -456,8 +456,8 @@ static int u3_ht_write_config(struct pci_bus *bus, unsigned int devfn,

static struct pci_ops u3_ht_pci_ops =
{
u3_ht_read_config,
u3_ht_write_config
.read = u3_ht_read_config,
.write = u3_ht_write_config,
};

#define U4_PCIE_CFA0(devfn, off) \
Expand Down Expand Up @@ -561,8 +561,8 @@ static int u4_pcie_write_config(struct pci_bus *bus, unsigned int devfn,

static struct pci_ops u4_pcie_pci_ops =
{
u4_pcie_read_config,
u4_pcie_write_config
.read = u4_pcie_read_config,
.write = u4_pcie_write_config,
};

#endif /* CONFIG_PPC64 */
Expand Down

0 comments on commit 3fac10e

Please sign in to comment.