From 261fa16d144e8a48f9637ab146a4d74fde95e868 Mon Sep 17 00:00:00 2001 From: Joerg Sonnenberger Date: Fri, 13 Aug 2004 08:27:02 +0000 Subject: [PATCH] Add MODULE_VERSION(pci, 1), e.g. agp(4) can't be loaded as module otherwise. Suggested-by: corecode While at it, de-static pci_alloc_resource to match the prototyp. ACPI5 depends on it. --- sys/bus/pci/pci.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/bus/pci/pci.c b/sys/bus/pci/pci.c index e16b1130ee..decc8b33b4 100644 --- a/sys/bus/pci/pci.c +++ b/sys/bus/pci/pci.c @@ -24,7 +24,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * $FreeBSD: src/sys/pci/pci.c,v 1.141.2.15 2002/04/30 17:48:18 tmm Exp $ - * $DragonFly: src/sys/bus/pci/pci.c,v 1.21 2004/05/19 22:52:39 dillon Exp $ + * $DragonFly: src/sys/bus/pci/pci.c,v 1.22 2004/08/13 08:27:02 joerg Exp $ * */ @@ -1595,7 +1595,7 @@ pci_write_ivar(device_t dev, device_t child, int which, uintptr_t value) return 0; } -static struct resource * +struct resource * pci_alloc_resource(device_t dev, device_t child, int type, int *rid, u_long start, u_long end, u_long count, u_int flags) { @@ -1847,3 +1847,4 @@ static driver_t pci_driver = { }; DRIVER_MODULE(pci, pcib, pci_driver, pci_devclass, pci_modevent, 0); +MODULE_VERSION(pci, 1); -- 2.41.0