Re: kobject must be initialized before calling kobject_init()?!

2008-02-08 Thread Greg KH
On Fri, Feb 08, 2008 at 08:24:25PM -0800, Roland Dreier wrote: > So I was perusing the code in lib/kobject.c, and I saw this: > > void kobject_init(struct kobject *kobj, struct kobj_type *ktype) > { > // [a couple of of parameter checks...] > if

kobject must be initialized before calling kobject_init()?!

2008-02-08 Thread Roland Dreier
So I was perusing the code in lib/kobject.c, and I saw this: void kobject_init(struct kobject *kobj, struct kobj_type *ktype) { // [a couple of of parameter checks...] if (kobj->state_initialized) { /* do not error out as

kobject must be initialized before calling kobject_init()?!

2008-02-08 Thread Roland Dreier
So I was perusing the code in lib/kobject.c, and I saw this: void kobject_init(struct kobject *kobj, struct kobj_type *ktype) { // [a couple of of parameter checks...] if (kobj-state_initialized) { /* do not error out as

Re: kobject must be initialized before calling kobject_init()?!

2008-02-08 Thread Greg KH
On Fri, Feb 08, 2008 at 08:24:25PM -0800, Roland Dreier wrote: So I was perusing the code in lib/kobject.c, and I saw this: void kobject_init(struct kobject *kobj, struct kobj_type *ktype) { // [a couple of of parameter checks...] if