lkml.org 
[lkml]   [2004]   [Jan]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] fix/improve modular IDE (Re: [PATCH] modular IDE for 2.6.1 ugly but working fix)
Date
On Tuesday 20 of January 2004 03:01, Rusty Russell wrote:
> In message <200401171422.06211.bzolnier@elka.pw.edu.pl> you write:
> > +static int __init ide_generic_init(void)
> > +{
> > + MOD_INC_USE_COUNT;
> > + if (ide_hwifs[0].io_ports[IDE_DATA_OFFSET])
> > + ide_get_lock(NULL, NULL); /* for atari only */
> > +
> > + (void)ideprobe_init();
> > +
> > + if (ide_hwifs[0].io_ports[IDE_DATA_OFFSET])
> > + ide_release_lock(); /* for atari only */
> > +
> > +#ifdef CONFIG_PROC_FS
> > + create_proc_ide_interfaces();
> > +#endif
> > + return 0;
> > +}
> > +
> > +static void __exit ide_generic_exit(void)
> > +{
> > +}
>
> If you don't want to be unloadable, just don't have a module_exit() at
> all.

Ok, I will update it later. Thanks for a hint!
--bart

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

\
 
 \ /
  Last update: 2005-03-22 14:00    [W:0.113 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site