Re: NatSemi SCx200 patches for Linux-2.5

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Mon Sep 30 2002 - 07:16:56 EST


On Mon, 2002-09-30 at 12:23, Christer Weinigel wrote:
> How can I guarantee that the driver scx200.c is initialized before any
> other drivers that use the scx200_gpio functions (e.g. scx200_i2c.c)?
> I have put scx200.c in in arch/i386/kernel in the hope that this
> directory will always be initialized before anything else, but is this
> really true?

There are two ways. For built in code you can use the link order to
force ordering. In 2.4 thats your only real choice. For modules you need
to ensure there is a dependancy so modprobe loads the supporting module
first

Alan

-
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/



This archive was generated by hypermail 2b29 : Mon Sep 30 2002 - 22:00:44 EST