[lkml]   [2000]   [Jan]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [linux-usb] __initcall diff, version 2

On Sun, 30 Jan 2000, Randy Dunlap wrote:
> I like the idea of this __initcall patch for USB.
> However, I've searched other 2.3.4x drivers and found
> very little use of __initcall.

It's fairly new. I heartily encourage initcalls, they are _much_ nicer
than explicit initialization. The explicit way only makes sense for (a)
old drivers and (b) code that requires certain ordering.

However, instead of using "__initcall" directly, I would suggest using
"module_init()" and "module_exit()". Which will do the right things for
drivers whether that driver is compiled as a module or not (basically, a
good driver these days should have NO code that is inside #ifdef MODULE
any more).


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:56    [W:0.085 / U:2.068 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site