Re: [git pull] drm - fixes + radeon KMS (part 2)

From: Linus Torvalds
Date: Tue Jun 16 2009 - 14:21:14 EST




On Tue, 16 Jun 2009, Ryan Hope wrote:
>
> +#ifdef MODULE
> module_init(radeon_init);
> +#else
> +late_initcall(radeon_init);
> +#endif


You should never need something like that.

Just do

late_initcall(radeon_init);

and if it's a module (which doesn't have "early" vs "late" etc), it will
just be a normal module_init.

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