summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/savage_drv.c
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2007-12-16 01:02:32 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2007-12-16 01:02:32 +0000
commit7953511a19ed4b49680282685824609caa029b7a (patch)
tree070aefd5763bc0b5edf037def017b494103160a3 /sys/dev/pci/drm/savage_drv.c
parent6fe7d8adc29f6dff9bed413ccd3a0294f421d5fd (diff)
destatic the static functions, they only make debugging harder.
While i'm here: remove a couple of debug printfs that shouldn't have gone in anyway. trowel on some KNF (I really need to get around to sending some of this upstream). remove some netbsd specific code that netbsd doesn't have anymore. ok tedu.
Diffstat (limited to 'sys/dev/pci/drm/savage_drv.c')
-rw-r--r--sys/dev/pci/drm/savage_drv.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/sys/dev/pci/drm/savage_drv.c b/sys/dev/pci/drm/savage_drv.c
index 4c90f24d9d6..557bdbb1775 100644
--- a/sys/dev/pci/drm/savage_drv.c
+++ b/sys/dev/pci/drm/savage_drv.c
@@ -32,12 +32,15 @@
#include "savage_drv.h"
#include "drm_pciids.h"
+void savage_configure(drm_device_t *);
+
/* drv_PCI_IDs comes from drm_pciids.h, generated from drm_pciids.txt. */
static drm_pci_id_list_t savage_pciidlist[] = {
savage_PCI_IDS
};
-static void savage_configure(drm_device_t *dev)
+void
+savage_configure(drm_device_t *dev)
{
dev->driver.buf_priv_size = sizeof(drm_savage_buf_priv_t);
dev->driver.load = savage_driver_load;
@@ -105,7 +108,10 @@ MODULE_DEPEND(savage, drm, 1, 1, 1);
#elif defined(__NetBSD__) || defined(__OpenBSD__)
-static int
+int savagedrm_probe(struct device *, void *, void *);
+void savagedrm_attach(struct device *, struct device *, void *);
+
+int
#if defined(__OpenBSD__)
savagedrm_probe(struct device *parent, void *match, void *aux)
#else
@@ -115,7 +121,7 @@ savagedrm_probe(struct device *parent, struct cfdata *match, void *aux)
return drm_probe((struct pci_attach_args *)aux, savage_pciidlist);
}
-static void
+void
savagedrm_attach(struct device *parent, struct device *self, void *aux)
{
struct pci_attach_args *pa = aux;