lkml.org 
[lkml]   [2003]   [Mar]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] Fix kobject_get oopses triggered by i2c in 2.5.65-bk
Hi,

i2c initialization must not use module_init now, when it was converted
to the kobject interface. There are dozens of users which need it working
much sooner. i2c is subsystem after all, isn't it?

Fixes kernel oopses in kobject_get during system init which were happening
to me.

Petr Vandrovec
vandrove@vc.cvut.cz

--- vger/drivers/i2c/i2c-core.c 2003-03-21 19:06:32.000000000 +0100
+++ linux/drivers/i2c/i2c-core.c 2003-03-21 20:42:13.000000000 +0100
@@ -675,7 +675,7 @@
bus_unregister(&i2c_bus_type);
}

-module_init(i2c_init);
+subsys_initcall(i2c_init);
module_exit(i2c_exit);

/* ----------------------------------------------------
-
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/
\
 
 \ /
  Last update: 2005-03-22 13:34    [W:0.027 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site