summaryrefslogtreecommitdiff
path: root/sys/arch/macppc/dev
diff options
context:
space:
mode:
authorMarc Balmer <mbalmer@cvs.openbsd.org>2007-06-14 10:11:17 +0000
committerMarc Balmer <mbalmer@cvs.openbsd.org>2007-06-14 10:11:17 +0000
commit48939e5d0b01761f2fb9609643a9584084ac358e (patch)
treec120ec056828b2bdb3359c328b980e7c56e47562 /sys/arch/macppc/dev
parentd885abbcc7cc8875af669798ca0d6c6f6a0d1c90 (diff)
Remove the definition and usage of the USB_DECLARE_DRIVER_CLASS and
USB_DECLARE_DRIVER macros. No binary change. ok dlg.
Diffstat (limited to 'sys/arch/macppc/dev')
-rw-r--r--sys/arch/macppc/dev/tpms.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/sys/arch/macppc/dev/tpms.c b/sys/arch/macppc/dev/tpms.c
index bdfb9330b98..5319a9e405c 100644
--- a/sys/arch/macppc/dev/tpms.c
+++ b/sys/arch/macppc/dev/tpms.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tpms.c,v 1.11 2007/06/12 16:26:37 mbalmer Exp $ */
+/* $OpenBSD: tpms.c,v 1.12 2007/06/14 10:11:16 mbalmer Exp $ */
/*
* Copyright (c) 2005, Johan Wallén
@@ -288,7 +288,22 @@ const struct wsmouse_accessops tpms_accessops = {
};
/* This take cares also of the basic device registration. */
-USB_DECLARE_DRIVER(tpms);
+int tpms_match(struct device *, void *, void *);
+void tpms_attach(struct device *, struct device *, void *);
+int tpms_detach(struct device *, int);
+int tpms_activate(struct device *, enum devact);
+
+struct cfdriver tpms_cd = {
+ NULL, "tpms", DV_DULL
+};
+
+const struct cfattach tpms_ca = {
+ sizeof(struct tpms_softc),
+ tpms_match,
+ tpms_attach,
+ tpms_detach,
+ tpms_activate,
+};
/*
* Basic driver.