mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-18 22:33:39 +00:00
Correct minor errors in the code examples.
PR: 41993 Submitted by: David Lay <dsl@foozle.org>
This commit is contained in:
parent
86b0a4f56e
commit
e767e97d74
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=104328
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue