linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Petr Vandrovec <vandrove@vc.cvut.cz>
To: torvalds@transmeta.com
Cc: greg@kroah.com, linux-kernel@vger.kernel.org
Subject: [PATCH] Fix kobject_get oopses triggered by i2c in 2.5.65-bk
Date: Fri, 21 Mar 2003 20:51:14 +0100	[thread overview]
Message-ID: <20030321195114.GA1313@vana.vc.cvut.cz> (raw)

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);
 
 /* ----------------------------------------------------

             reply	other threads:[~2003-03-21 19:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-21 19:51 Petr Vandrovec [this message]
2003-03-21 20:23 ` [PATCH] Fix kobject_get oopses triggered by i2c in 2.5.65-bk Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030321195114.GA1313@vana.vc.cvut.cz \
    --to=vandrove@vc.cvut.cz \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).