[svn-commits] tzafrir: branch linux/tzafrir/sysfs r8368 - /linux/team/tzafrir/sysfs/drivers...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Sun Mar 21 15:18:33 CDT 2010


Author: tzafrir
Date: Sun Mar 21 15:18:29 2010
New Revision: 8368

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=8368
Log:
Don't use the dummy toplevel_device as parent.

We should probably just remove it altogether.

Modified:
    linux/team/tzafrir/sysfs/drivers/dahdi/dahdi-sysfs.c

Modified: linux/team/tzafrir/sysfs/drivers/dahdi/dahdi-sysfs.c
URL: http://svnview.digium.com/svn/dahdi/linux/team/tzafrir/sysfs/drivers/dahdi/dahdi-sysfs.c?view=diff&rev=8368&r1=8367&r2=8368
==============================================================================
--- linux/team/tzafrir/sysfs/drivers/dahdi/dahdi-sysfs.c (original)
+++ linux/team/tzafrir/sysfs/drivers/dahdi/dahdi-sysfs.c Sun Mar 21 15:18:29 2010
@@ -323,10 +323,9 @@
 	span_dbg(DEVICES, span, "\n");
 
 	span_device->class = span_class;
-	if (span->parent_device)
-		span_device->parent = span->parent_device;
-	else
-		span_device->parent = &toplevel_device;
+	span_device->parent = (span->parent_device)
+		? span->parent_device
+		: NULL;
 	dev_set_name(span_device, "span-%03d", span->spanno);
 	dev_set_drvdata(span_device, span);
 	span_device->release = span_release;




More information about the svn-commits mailing list