Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 21 Mar 2003 19:53:46 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 21 Mar 2003 19:53:45 -0500 Received: from 12-231-249-244.client.attbi.com ([12.231.249.244]:50184 "HELO kroah.com") by vger.kernel.org with SMTP id ; Fri, 21 Mar 2003 19:53:39 -0500 Subject: [PATCH] More i2c driver changes for 2.5.65 In-reply-to: <20030322010405.GA18613@kroah.com> Content-Transfer-Encoding: 7BIT To: linux-kernel@vger.kernel.org, sensors@stimpy.netroedge.com From: Greg KH Content-Type: text/plain; charset=US-ASCII Mime-version: 1.0 Date: Fri, 21 Mar 2003 17:04 -0800 X-mailer: gregkh_patchbomb Message-id: <1048295082521@kroah.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1099 Lines: 34 ChangeSet 1.1188, 2003/03/21 12:29:44-08:00, vandrove@vc.cvut.cz [PATCH] Fix kobject_get oopses triggered by i2c in 2.5.65-bk 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. drivers/i2c/i2c-core.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -Nru a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c --- a/drivers/i2c/i2c-core.c Fri Mar 21 16:53:45 2003 +++ b/drivers/i2c/i2c-core.c Fri Mar 21 16:53:45 2003 @@ -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/