Re: [PATCH 2.5] pcmcia (2/5): add bus_type pcmcia_bus_type

Linus Torvalds (torvalds@transmeta.com)
Sat, 22 Mar 2003 20:33:06 -0800 (PST)


On Sat, 22 Mar 2003, Dominik Brodowski wrote:
>
> Register a bus_type pcmcia_bus_type. This means the initialization of
> the ds module needs to be done in two levels: one quite early
> (subsys_initcall) so that drivers may use the bus_type; the other one
> must stay that late (late_initcall). As only one initcall can be
> specified within one module, some tweaking is needed.

Hmm.. We should fix the module interface instead.

I've applied this patch, but there's no reall reason why modules
shouldn't be able to have multiple initcalls.

Having drivers behave differently whether they are compiled in or as
modules is not a good thing. Rusty?

Linus

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