From: "pHilipp Zabel" <philipp.zabel@gmail.com>
To: "Paul Sokolovsky" <pmiscml@gmail.com>
Cc: linux-kernel@vger.kernel.org, "Adrian Bunk" <bunk@stusta.de>,
"Greg Kroah-Hartman" <gregkh@suse.de>,
kernel-discuss@handhelds.org
Subject: Re: Where did find_bus() go in 2.6.18?
Date: Mon, 20 Nov 2006 10:35:30 +0100 [thread overview]
Message-ID: <74d0deb30611200135m2851a47fjc8253a52dca0c1d0@mail.gmail.com> (raw)
In-Reply-To: <1154868495.20061120003437@gmail.com>
Hi Paul,
On 11/19/06, Paul Sokolovsky <pmiscml@gmail.com> wrote:
> Hello linux-kernel,
>
> We here at Handhelds.org upgrading our drivers to 2.6.18 and I just
> caught a case of find_bus() being undefined during link.
I assume you are referring to the ipaq h2200 battery driver that uses
bus = find_bus("w1");
to "find" the one wire bus?
I think the solution would be to use w1_bus_type instead, but for that
it would have to be exported.
Index: linux-2.6/drivers/w1/w1.c
===================================================================
--- linux-2.6.orig/drivers/w1/w1.c 2006-10-28 22:58:11.000000000 +0200
+++ linux-2.6/drivers/w1/w1.c 2006-10-29 02:01:30.000000000 +0200
@@ -194,7 +194,7 @@
static int w1_uevent(struct device *dev, char **envp, int num_envp, char *buffe
r, int buffer_size);
-static struct bus_type w1_bus_type = {
+struct bus_type w1_bus_type = {
.name = "w1",
.match = w1_master_match,
.uevent = w1_uevent,
@@ -978,3 +978,5 @@
module_init(w1_init);
module_exit(w1_fini);
+
+EXPORT_SYMBOL_GPL(w1_bus_type);
regards
Philipp
next prev parent reply other threads:[~2006-11-20 9:35 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-19 22:34 Paul Sokolovsky
2006-11-19 23:45 ` Jiri Slaby
2006-11-20 0:12 ` Greg KH
2006-11-20 14:13 ` Re[2]: " Paul Sokolovsky
2006-11-20 17:35 ` Adrian Bunk
2006-11-21 15:08 ` Re[2]: " Paul Sokolovsky
2006-11-21 15:16 ` Arjan van de Ven
2006-11-21 18:04 ` Adrian Bunk
2006-11-21 7:54 ` Greg KH
2006-11-22 8:36 ` Re[2]: " Paul Sokolovsky
2006-11-21 19:02 ` Dmitry Torokhov
2006-11-20 0:13 ` Paul Sokolovsky
2006-11-20 8:34 ` Arjan van de Ven
2006-11-21 18:29 ` Matthew Frost
2006-11-21 19:01 ` Evgeniy Polyakov
2006-11-21 19:41 ` Re[2]: " Paul Sokolovsky
2006-11-21 20:34 ` Matthew Frost
2006-11-20 9:35 ` pHilipp Zabel [this message]
2006-11-21 14:15 Al Boldi
2006-11-21 14:32 ` Arjan van de Ven
2006-11-22 14:18 ` Al Boldi
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=74d0deb30611200135m2851a47fjc8253a52dca0c1d0@mail.gmail.com \
--to=philipp.zabel@gmail.com \
--cc=bunk@stusta.de \
--cc=gregkh@suse.de \
--cc=kernel-discuss@handhelds.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pmiscml@gmail.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
all inboxes | Powered by JetHome®