From 4f9b793ef79a2dfb2566cbec5b9de026e649afe1 Mon Sep 17 00:00:00 2001
From: dd
Date: Tue, 1 Oct 2002 23:35:33 +0000
Subject: Correct minor errors in the code examples.
PR: 41993
Submitted by: David Lay
---
share/man/man9/driver.9 | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/share/man/man9/driver.9 b/share/man/man9/driver.9
index 03c9d77..fa64a1a 100644
--- a/share/man/man9/driver.9
+++ b/share/man/man9/driver.9
@@ -45,7 +45,7 @@ static int foo_detach(device_t);
static int foo_frob(device_t, int, int);
static int foo_twiddle(device_t, char *);
-static struct device_method foo_methods[] = {
+static struct device_method_t foo_methods[] = {
/* Methods from the device interface */
DEVMETHOD(device_probe, foo_probe),
DEVMETHOD(device_attach, foo_attach),
@@ -62,8 +62,7 @@ static struct device_method foo_methods[] = {
static driver_t foo_driver {
"foo",
foo_methods,
- DRIVER_TYPE_MISC,
- sizeof(struct foo_softc),
+ sizeof(struct foo_softc)
};
static devclass_t foo_devclass;
--
cgit v1.1