diff -urNX dontdiff linux-2.6.6/include/linux/kobject.h linux/include/linux/kobject.h --- linux-2.6.6/include/linux/kobject.h 2004-05-09 22:31:59.000000000 -0400 +++ linux/include/linux/kobject.h 2004-05-18 20:29:43.000000000 -0400 @@ -62,6 +62,7 @@ void (*release)(struct kobject *); struct sysfs_ops * sysfs_ops; struct attribute ** default_attrs; + int no_hotplug; }; diff -urNX dontdiff linux-2.6.6/lib/kobject.c linux/lib/kobject.c --- linux-2.6.6/lib/kobject.c 2004-05-09 22:33:19.000000000 -0400 +++ linux/lib/kobject.c 2004-05-18 20:50:42.000000000 -0400 @@ -203,6 +203,9 @@ { struct kobject * top_kobj = kobj; + if (kobj->ktype && kobj->ktype->no_hotplug) + return; + /* If this kobj does not belong to a kset, try to find a parent that does. */ if (!top_kobj->kset && top_kobj->parent) {