summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2013-09-07 20:52:31 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2013-09-07 20:52:31 +0000
commit27e62f99b3ce60799dd100bd01be3c71de3e20c1 (patch)
tree70d63735bd6d4afd640854dc90fcc1ddfa6475ed
parent7fcc90cb2ebf17571bd2f20b94ebb81692848d3b (diff)
downloadFreeBSD-src-27e62f99b3ce60799dd100bd01be3c71de3e20c1.zip
FreeBSD-src-27e62f99b3ce60799dd100bd01be3c71de3e20c1.tar.gz
Fix error in r252115: space for the softc needs to be allocated. This
seemed to be working by chance on most systems.
-rw-r--r--sys/powerpc/ofw/ofw_cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/powerpc/ofw/ofw_cpu.c b/sys/powerpc/ofw/ofw_cpu.c
index 6fb1126..6cc6484 100644
--- a/sys/powerpc/ofw/ofw_cpu.c
+++ b/sys/powerpc/ofw/ofw_cpu.c
@@ -158,7 +158,7 @@ static device_method_t ofw_cpu_methods[] = {
static driver_t ofw_cpu_driver = {
"cpu",
ofw_cpu_methods,
- 0
+ sizeof(struct ofw_cpu_softc)
};
static devclass_t ofw_cpu_devclass;
OpenPOWER on IntegriCloud