2.5.67-mm1 cause framebuffer crash at bootup
Subsystems (2)
Quoted 3 lines
Unfortunately, as proven by i2c, kobjects infrastructure does not like if you reference non-existing bus type before it is registered.
AFAICT sysfs itself sort of has this problem in 2.5.66 -- it tries
to register itself as a filesystem before the set 'fs' is registered. It retries later and succeeds but I could never figure out if that was by design or accident. 8)
This patch helps find some of these problems but I don't think it will
help in this case:
lib/kobject.c +0 -0
@ -57,10 +57,15 @
sysfs_remove_dir(kobj);
}
}
+ if (error) {
+ printk("Badness name:%s, err:%d, set:%s\n",
+ kobj->name, error,
+ kobj->kset ? kobj->kset->kobj.name : "<NULL>");
+ WARN_ON(1);
+ }
return error;
}
-
static inline struct kobject * to_kobj(struct list_head * entry) {
return container_of(entry,struct kobject,entry);
@ -149,7 +154,6 @
if (kobj) {
kobject_init(kobj);
error = kobject_add(kobj);
- WARN_ON(error);
} else
error = -EINVAL;
return error;
--
Chuck