Messages in this thread Patch in this message | | | Subject | Re: 2.5.67-mm2 | From | Robert Love <> | Date | 13 Apr 2003 16:45:24 -0400 |
| |
On Sun, 2003-04-13 at 16:05, Andrew Morton wrote:
> It's a bk bug. This might make it boot:
Yah, I needed a similar patch to make 2.5.67-mm2 boot. Not sure if its hiding the real problem or not, but it works.
Note the difference between mine and your's, though. I think you need it.
Robert Love
drivers/base/class.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff -urN linux-2.5.67/drivers/base/class.c linux/drivers/base/class.c --- linux-2.5.67/drivers/base/class.c 2003-04-07 13:33:00.000000000 -0400 +++ linux/drivers/base/class.c 2003-04-13 16:32:52.000000000 -0400 @@ -103,12 +105,12 @@ struct device_class * cls = get_devclass(drv->devclass); int error = 0; - if (cls) { + if (cls && &cls->subsys) { down_write(&cls->subsys.rwsem); pr_debug("device class %s: adding driver %s:%s\n", cls->name,drv->bus->name,drv->name); error = devclass_drv_link(drv); - + if (!error) list_add_tail(&drv->class_list,&cls->drivers.list); up_write(&cls->subsys.rwsem);
- 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/
| |