Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jan 2009 14:06:30 +0000 (UTC)
From:      Nathan Whitehorn <nwhitehorn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r187472 - head/sys/dev/ofw
Message-ID:  <200901201406.n0KE6U67047129@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901201406.n0KE6U67047129>