Re: [PATCH v2] ramfs: Remove module leftovers

From: Christoph Hellwig
Date: Mon Oct 10 2011 - 07:24:45 EST


On Mon, Oct 10, 2011 at 01:13:22PM +0200, Richard Weinberger wrote:
> > Removing the dead code looks good, but what is the point in using
> > device_initcall? We've always been using module_init for non-modular
> > code, though.
> >
>
> Ah, ok!
> So we can keep the module_init()?
> I was not sure whether it's valid to use module_init() in pure
> non-modular code...

It is valid. And if it's not the style de jour anymore thousands of people
will flame me now, but I've always done it that way.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/