Pass correct size in CFATTACH_DECL (obio_softc, not device).
I have no idea how/why it's been working all this time, but I guess today's changes to struct device shifted delicate numerology balance and exposed the problem that's been around since the import.
This commit is contained in:
parent
e70e336960
commit
ca8a189dd1
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: obio.c,v 1.1 2006/09/01 21:26:18 uwe Exp $ */
|
||||
/* $NetBSD: obio.c,v 1.2 2007/09/24 22:55:13 uwe Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -37,7 +37,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: obio.c,v 1.1 2006/09/01 21:26:18 uwe Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: obio.c,v 1.2 2007/09/24 22:55:13 uwe Exp $");
|
||||
|
||||
#include "btn_obio.h"
|
||||
#include "pwrsw_obio.h"
|
||||
|
@ -72,7 +72,7 @@ static int obio_print(void *, const char *);
|
|||
static int obio_search(struct device *, struct cfdata *,
|
||||
const int *, void *);
|
||||
|
||||
CFATTACH_DECL(obio, sizeof(struct device),
|
||||
CFATTACH_DECL(obio, sizeof(struct obio_softc),
|
||||
obio_match, obio_attach, NULL, NULL);
|
||||
|
||||
static int
|
||||
|
|
Loading…
Reference in New Issue