[PATCH] atl1_main: pci_module_int returns to haunt us



Perhaps Adrian would care to simply delete the pci_module_init ancient compat
code so nobody else can inadvertently merge a driver that uses it.

Signed-off-by: Alan Cox <alan@xxxxxxxxxx>


diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.20-rc6-mm3/drivers/net/atl1/atl1_main.c linux-2.6.20-rc6-mm3/drivers/net/atl1/atl1_main.c
--- linux.vanilla-2.6.20-rc6-mm3/drivers/net/atl1/atl1_main.c 2007-01-31 14:20:41.000000000 +0000
+++ linux-2.6.20-rc6-mm3/drivers/net/atl1/atl1_main.c 2007-01-31 15:25:29.083361224 +0000
@@ -2482,12 +2482,9 @@
**/
static int __init atl1_init_module(void)
{
- int ret;
printk(KERN_INFO "%s - version %s\n", atl1_driver_string, DRIVER_VERSION);
printk(KERN_INFO "%s\n", atl1_copyright);
- ret = pci_module_init(&atl1_driver);
-
- return ret;
+ return pci_register_driver(&atl1_driver);
}

module_init(atl1_init_module);
-
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/



Relevant Pages

  • Alexandra heats supermarket
    ... The catalogues, reasons, and tickets are all sufficient and ... worthy drawer and care it for ever its borough. ... Nobody hear once, rule inadvertently, then recognize as the throat ...
    (sci.crypt)
  • Re: Harp rack blues
    ... but felt that I was just being used, nobody really cared about me, ... me, but me, I'm talking about my physical care, and I'm not doing it, ... society, I don't even know what that means, I feel like it's all ... if it weren't for Bob Dylan. ...
    (rec.music.dylan)
  • OT Wasnt a George Carlin fan till now.
    ... fuckin' retirement money. ... It’s a big club and you ain't in it. ... The game is rigged and nobody seems to notice. ... Nobody seems to care. ...
    (rec.pyrotechnics)
  • Re: Going to Liverpool
    ... can just sulk away with your tail betwixt your spindly fucking legs. ... You're directed to strangers posting their experiences on their trips to Liverpool. ... when I don't care about something, I go out of my way to pitch a fit ... Nobody cares about your vacation to Liverpool... ...
    (rec.music.beatles)
  • Re: Spioler: question about Kimis strategy
    ... other driver was up to his sidepod with his front wheel and he didn't ... you do know what is the accepted yield time for ... there was no way MS could have avoided JPM on the line JPM held. ... I do not care if MS was over, ...
    (rec.autos.sport.f1)