From 029b349a7c56bbd7e865a931db48a06a5f5c9227 Mon Sep 17 00:00:00 2001 From: cokane Date: Thu, 13 Mar 2008 14:08:41 +0000 Subject: Add the module dependency on the mem(4) module. This will fix the module failing to load on a kernel that has "nodevice mem" in the config. It will now properly bring in the mem(4) module. Submitted by: antoine Reviewed by: imp MFC after: 1 week --- sys/dev/tdfx/tdfx_pci.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/dev/tdfx') diff --git a/sys/dev/tdfx/tdfx_pci.c b/sys/dev/tdfx/tdfx_pci.c index 6c7a832..ff4efc6 100644 --- a/sys/dev/tdfx/tdfx_pci.c +++ b/sys/dev/tdfx/tdfx_pci.c @@ -823,4 +823,5 @@ static driver_t tdfx_driver = { /* Tell Mr. Kernel about us! */ DRIVER_MODULE(tdfx, pci, tdfx_driver, tdfx_devclass, 0, 0); +MODULE_DEPEND(tdfx, mem, 1, 1, 1); MODULE_VERSION(tdfx, 1); -- cgit v1.1