Commit ebb11c7e authored by Stephen Hemminger's avatar Stephen Hemminger Committed by Linus Torvalds

[PATCH] typo in new class_device_release

There is a typo in the current 2.5.70 bk version of class_device_release that
was not there in my original patch.  By confusing the class and the class_device,
the release function oops.  cd->release is always the function itself (class_device_release),
cls->release is the one setup for the class (net_class in my case).
parent 9bc35de1
...@@ -191,7 +191,7 @@ static void class_dev_release(struct kobject * kobj) ...@@ -191,7 +191,7 @@ static void class_dev_release(struct kobject * kobj)
pr_debug("device class '%s': release.\n",cd->class_id); pr_debug("device class '%s': release.\n",cd->class_id);
if (cls->release) if (cls->release)
cd->release(cd); cls->release(cd);
} }
static struct kobj_type ktype_class_device = { static struct kobj_type ktype_class_device = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment