* [PATCH 2.5] pcmcia (5/5): convert pccard_cs driver to new registration interface
@ 2003-03-22 16:01 Dominik Brodowski
0 siblings, 0 replies; only message in thread
From: Dominik Brodowski @ 2003-03-22 16:01 UTC (permalink / raw)
To: torvalds; +Cc: linux-kernel
Convert the pcnet_cs driver to use the new registration call.
diff -ruN linux-original/drivers/net/pcmcia/pcnet_cs.c linux/drivers/net/pcmcia/pcnet_cs.c
--- linux-original/drivers/net/pcmcia/pcnet_cs.c 2003-03-19 11:08:30.000000000 +0100
+++ linux/drivers/net/pcmcia/pcnet_cs.c 2003-03-19 11:23:25.000000000 +0100
@@ -1617,6 +1617,15 @@
/*====================================================================*/
+static struct pcmcia_driver pcnet_driver = {
+ .drv = {
+ .name = "pcnet_cs",
+ },
+ .attach = pcnet_attach,
+ .detach = pcnet_detach,
+ .owner = THIS_MODULE,
+};
+
static int __init init_pcnet_cs(void)
{
servinfo_t serv;
@@ -1627,14 +1636,14 @@
"does not match!\n");
return -EINVAL;
}
- register_pccard_driver(&dev_info, &pcnet_attach, &pcnet_detach);
+ pcmcia_register_driver(&pcnet_driver);
return 0;
}
static void __exit exit_pcnet_cs(void)
{
DEBUG(0, "pcnet_cs: unloading\n");
- unregister_pccard_driver(&dev_info);
+ pcmcia_unregister_driver(&pcnet_driver);
while (dev_list != NULL)
pcnet_detach(dev_list);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-03-22 15:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-22 16:01 [PATCH 2.5] pcmcia (5/5): convert pccard_cs driver to new registration interface Dominik Brodowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).