My question was how the hell it was getting there in the first place, and
I see that the type of the object isn't getting set properly, so it
defaults to treat it as a struct subsystem.
Could you please try the following patch, and let me know if it works?
Thanks,
-pat
===== drivers/base/sys.c 1.25 vs edited =====
--- 1.25/drivers/base/sys.c Mon Jun 16 10:07:04 2003
+++ edited/drivers/base/sys.c Tue Jun 17 15:50:48 2003
@@ -170,6 +172,9 @@
/* Make sure the kset is set */
sysdev->kobj.kset = &cls->kset;
+
+ /* But make sure we point to the right type for sysfs translation */
+ sysdev->kobj.ktype = &ktype_sysdev;
/* set the kobject name */
snprintf(sysdev->kobj.name,KOBJ_NAME_LEN,"%s%d",
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/