svn commit: r187472 - head/sys/dev/ofw
Nathan Whitehorn
nwhitehorn at FreeBSD.org
Tue Jan 20 06:06:31 PST 2009
Author: nwhitehorn
Date: Tue Jan 20 14:06:30 2009
New Revision: 187472
URL: http://svn.freebsd.org/changeset/base/187472
Log:
Set the wrong softc size when defining the ofw_iicbus class. Change it to
the correct value.
Modified:
head/sys/dev/ofw/ofw_iicbus.c
Modified: head/sys/dev/ofw/ofw_iicbus.c
==============================================================================
--- head/sys/dev/ofw/ofw_iicbus.c Tue Jan 20 12:33:04 2009 (r187471)
+++ head/sys/dev/ofw/ofw_iicbus.c Tue Jan 20 14:06:30 2009 (r187472)
@@ -78,8 +78,8 @@ struct ofw_iicbus_devinfo {
static devclass_t ofwiicbus_devclass;
-DEFINE_CLASS_1(iicbus, ofw_iicbus_driver, ofw_iicbus_methods, 1 /* no softc */,
- iicbus_driver);
+DEFINE_CLASS_1(iicbus, ofw_iicbus_driver, ofw_iicbus_methods,
+ sizeof(struct iicbus_softc), iicbus_driver);
DRIVER_MODULE(ofw_iicbus, iichb, ofw_iicbus_driver, ofwiicbus_devclass, 0, 0);
MODULE_VERSION(ofw_iicbus, 1);
MODULE_DEPEND(ofw_iicbus, iicbus, 1, 1, 1);
More information about the svn-src-head
mailing list