Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/footbridge Use designated initialisers and fix ...
details: https://anonhg.NetBSD.org/src/rev/71e9bf0e7081
branches: trunk
changeset: 353078:71e9bf0e7081
user: skrll <skrll%NetBSD.org@localhost>
date: Wed Apr 19 08:30:00 2017 +0000
description:
Use designated initialisers and fix build in process.
diffstat:
sys/arch/arm/footbridge/footbridge_pci.c | 30 ++++++++++++++----------------
1 files changed, 14 insertions(+), 16 deletions(-)
diffs (54 lines):
diff -r c88529e1b7ca -r 71e9bf0e7081 sys/arch/arm/footbridge/footbridge_pci.c
--- a/sys/arch/arm/footbridge/footbridge_pci.c Wed Apr 19 07:35:44 2017 +0000
+++ b/sys/arch/arm/footbridge/footbridge_pci.c Wed Apr 19 08:30:00 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: footbridge_pci.c,v 1.28 2015/10/02 05:22:49 msaitoh Exp $ */
+/* $NetBSD: footbridge_pci.c,v 1.29 2017/04/19 08:30:00 skrll Exp $ */
/*
* Copyright (c) 1997,1998 Mark Brinicombe.
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: footbridge_pci.c,v 1.28 2015/10/02 05:22:49 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: footbridge_pci.c,v 1.29 2017/04/19 08:30:00 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -77,23 +77,21 @@
const struct evcnt *footbridge_pci_intr_evcnt(void *, pci_intr_handle_t);
struct arm32_pci_chipset footbridge_pci_chipset = {
- NULL, /* conf_v */
#ifdef netwinder
- netwinder_pci_attach_hook,
+ .pc_attach_hook = netwinder_pci_attach_hook,
#else
- footbridge_pci_attach_hook,
+ .pc_attach_hook = footbridge_pci_attach_hook,
#endif
- footbridge_pci_bus_maxdevs,
- footbridge_pci_make_tag,
- footbridge_pci_decompose_tag,
- footbridge_pci_conf_read,
- footbridge_pci_conf_write,
- NULL, /* intr_v */
- footbridge_pci_intr_map,
- footbridge_pci_intr_string,
- footbridge_pci_intr_evcnt,
- footbridge_pci_intr_establish,
- footbridge_pci_intr_disestablish
+ .pc_bus_maxdevs = footbridge_pci_bus_maxdevs,
+ .pc_make_tag = footbridge_pci_make_tag,
+ .pc_decompose_tag = footbridge_pci_decompose_tag,
+ .pc_conf_read = footbridge_pci_conf_read,
+ .pc_conf_write = footbridge_pci_conf_write,
+ .pc_intr_map = footbridge_pci_intr_map,
+ .pc_intr_string = footbridge_pci_intr_string,
+ .pc_intr_evcnt = footbridge_pci_intr_evcnt,
+ .pc_intr_establish = footbridge_pci_intr_establish,
+ .pc_intr_disestablish = footbridge_pci_intr_disestablish
};
struct arm32_dma_range footbridge_dma_ranges[1];
Home |
Main Index |
Thread Index |
Old Index