[PATCH] Better driver names for hostap_pci and hostap_plx

Pavel Roskin proski at gnu.org
Sat Sep 17 01:59:53 EDT 2005


Hello!

hostap_pci and hostap_plx drivers still use PCI driver names
"prism2_pci" and "prism2_plx" respectively.  This is unfriendly to
linux-wlan-ng, which uses the same names.  So, if e.g. hostap_pci and
prism2_pci are loaded, they will "share" /sys/bus/pci/drivers/prism2_plx
directory.

Change PCI driver names of hostap_pci and hostap_plx to be equal to
their module names.

Signed-off-by: Pavel Roskin <proski at gnu.org>

--- driver/modules/hostap_pci.c
+++ driver/modules/hostap_pci.c
@@ -394,7 +394,7 @@ static int prism2_pci_resume(struct pci_
 MODULE_DEVICE_TABLE(pci, prism2_pci_id_table);
 
 static struct pci_driver prism2_pci_drv_id = {
-	.name		= "prism2_pci",
+	.name		= "hostap_pci",
 	.id_table	= prism2_pci_id_table,
 	.probe		= prism2_pci_probe,
 	.remove		= prism2_pci_remove,
--- driver/modules/hostap_plx.c
+++ driver/modules/hostap_plx.c
@@ -573,7 +573,7 @@ static void prism2_plx_remove(struct pci
 MODULE_DEVICE_TABLE(pci, prism2_plx_id_table);
 
 static struct pci_driver prism2_plx_drv_id = {
-	.name		= "prism2_plx",
+	.name		= "hostap_plx",
 	.id_table	= prism2_plx_id_table,
 	.probe		= prism2_plx_probe,
 	.remove		= prism2_plx_remove,


-- 
Regards,
Pavel Roskin




More information about the HostAP mailing list