Module Name: src
Committed By: thorpej
Date: Fri Jun 25 03:46:30 UTC 2021
Modified Files:
src/sys/arch/alpha/pci: dwlpx_pci.c
Log Message:
Use the default implementation of attach_hook().
To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/arch/alpha/pci/dwlpx_pci.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/alpha/pci/dwlpx_pci.c
diff -u src/sys/arch/alpha/pci/dwlpx_pci.c:1.20 src/sys/arch/alpha/pci/dwlpx_pci.c:1.21
--- src/sys/arch/alpha/pci/dwlpx_pci.c:1.20 Fri May 7 16:58:34 2021
+++ src/sys/arch/alpha/pci/dwlpx_pci.c Fri Jun 25 03:46:30 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: dwlpx_pci.c,v 1.20 2021/05/07 16:58:34 thorpej Exp $ */
+/* $NetBSD: dwlpx_pci.c,v 1.21 2021/06/25 03:46:30 thorpej Exp $ */
/*
* Copyright (c) 1997 by Matthew Jacob
@@ -32,7 +32,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: dwlpx_pci.c,v 1.20 2021/05/07 16:58:34 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dwlpx_pci.c,v 1.21 2021/06/25 03:46:30 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -47,8 +47,6 @@ __KERNEL_RCSID(0, "$NetBSD: dwlpx_pci.c,
#define KV(_addr) ((void *)ALPHA_PHYS_TO_K0SEG((_addr)))
-static void dwlpx_attach_hook(device_t, device_t,
- struct pcibus_attach_args *);
static int dwlpx_bus_maxdevs(void *, int);
static pcitag_t dwlpx_make_tag(void *, int, int, int);
static void dwlpx_decompose_tag(void *, pcitag_t, int *, int *,
@@ -60,7 +58,6 @@ void
dwlpx_pci_init(pci_chipset_tag_t pc, void *v)
{
pc->pc_conf_v = v;
- pc->pc_attach_hook = dwlpx_attach_hook;
pc->pc_bus_maxdevs = dwlpx_bus_maxdevs;
pc->pc_make_tag = dwlpx_make_tag;
pc->pc_decompose_tag = dwlpx_decompose_tag;
@@ -68,11 +65,6 @@ dwlpx_pci_init(pci_chipset_tag_t pc, voi
pc->pc_conf_write = dwlpx_conf_write;
}
-static void
-dwlpx_attach_hook(device_t parent, device_t self, struct pcibus_attach_args *pba)
-{
-}
-
static int
dwlpx_bus_maxdevs(void *cpv, int busno)
{