From: David Johnson <dj@david-web.co.uk>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Drivers statically linked in the wrong order
Date: Mon, 26 Jun 2006 12:59:25 +0100 [thread overview]
Message-ID: <200606261259.25959.dj@david-web.co.uk> (raw)
Hi,
I'm currently working on a few kernel drivers (not yet merged into the
kernel). The main driver (for talking to some hardware over an I2C bus)
relies on another (for the I2C bus itself).
When compiled as modules, loading the main driver with modprobe loads the I2C
bus driver automatically. But when statically linked into the kernel the main
driver is loaded before the I2C bus driver, which causes it to barf.
How can I get the I2C bus driver to be linked before the main driver? I've
tried re-ordering things in Makefiles, but nothing I've tried seems to make
any difference.
The I2C bus driver is:
drivers/i2c/busses/i2c-envctrl.c
While the main driver is:
arch/sparc64/kernel/env_envctrl.c
Any help would be greatly appreciated!
Thanks,
David.
next reply other threads:[~2006-06-26 11:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-26 11:59 David Johnson [this message]
2006-06-26 12:30 ` Arjan van de Ven
2006-06-26 16:23 ` David Johnson
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=200606261259.25959.dj@david-web.co.uk \
--to=dj@david-web.co.uk \
--cc=linux-kernel@vger.kernel.org \
/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®