On Sunday 28 October 2007, Michael Buesch wrote: > We must use subsys_initcall, because we must initialize before a > driver calls rfkill_register(). > > Signed-off-by: Michael Buesch <mb@xxxxxxxxx> Signed-off-by: Ivo van Doorn <IvDoorn@xxxxxxxxx> > Index: wireless-2.6/net/rfkill/rfkill.c > =================================================================== > --- wireless-2.6.orig/net/rfkill/rfkill.c 2007-10-28 13:09:04.000000000 +0100 > +++ wireless-2.6/net/rfkill/rfkill.c 2007-10-28 14:27:30.000000000 +0100 > @@ -449,5 +449,5 @@ static void __exit rfkill_exit(void) > class_unregister(&rfkill_class); > } > > -module_init(rfkill_init); > +subsys_initcall(rfkill_init); > module_exit(rfkill_exit); > - To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html