Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Jul 2010 17:37:28 +0000 (UTC)
From:      Nathan Whitehorn <nwhitehorn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r209696 - user/nwhitehorn/ps3/powerpc/powerpc
Message-ID:  <201007041737.o64HbSlf098414@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nwhitehorn
Date: Sun Jul  4 17:37:28 2010
New Revision: 209696
URL: http://svn.freebsd.org/changeset/base/209696

Log:
  Allow multiple platform modules to peacefully coexist.

Modified:
  user/nwhitehorn/ps3/powerpc/powerpc/platform.c

Modified: user/nwhitehorn/ps3/powerpc/powerpc/platform.c
==============================================================================
--- user/nwhitehorn/ps3/powerpc/powerpc/platform.c	Sun Jul  4 12:43:12 2010	(r209695)
+++ user/nwhitehorn/ps3/powerpc/powerpc/platform.c	Sun Jul  4 17:37:28 2010	(r209696)
@@ -154,9 +154,10 @@ platform_probe_and_attach()
 		}
 
 		/*
-		 * We can't free the KOBJ, since it is static. Luckily,
-		 * this has no ill effects since it gets reset every time.
+		 * We can't free the KOBJ, since it is static. Reset the ops
+		 * member of this class so that we can come back later.
 		 */
+		platp->ops = NULL;
 	}
 
 	if (plat_def_impl == NULL)



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