From 9b2b2337b3caa006fa95eecb966b8a68eed83b90 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 24 Apr 2003 00:46:03 +0000 Subject: Move one definition to drm_drv.h and remove the rest of drm_init.h which was all unused. --- bsd/mga_drv.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'bsd/mga_drv.c') diff --git a/bsd/mga_drv.c b/bsd/mga_drv.c index 8b69b41b..324c9129 100644 --- a/bsd/mga_drv.c +++ b/bsd/mga_drv.c @@ -27,10 +27,10 @@ * Authors: * Rickard E. (Rik) Faith * Gareth Hughes + * + * $FreeBSD: src/sys/dev/drm/mga_drv.c,v 1.4 2003/03/09 02:08:28 anholt Exp $ */ -#include - #include "mga.h" #include "drmP.h" #include "drm.h" @@ -56,11 +56,14 @@ drm_chipinfo_t DRM(devicelist)[] = { #include "drm_drawable.h" #include "drm_drv.h" #include "drm_fops.h" -#include "drm_init.h" #include "drm_ioctl.h" #include "drm_lock.h" #include "drm_memory.h" #include "drm_vm.h" #include "drm_sysctl.h" +#ifdef __FreeBSD__ DRIVER_MODULE(mga, pci, mga_driver, mga_devclass, 0, 0); +#elif defined(__NetBSD__) +CFDRIVER_DECL(mga, DV_TTY, NULL); +#endif -- cgit v1.2.3