Skip to contentSkip to conversation

mtd/maps/ck804xrom.c: pci_module_init to pci_register_driver

PATCH New Richard Knutsson 1 participant 2 messages Feb 14, 2007 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mtd/maps/ck804xrom.c: pci_module_init to pci_register_driver

Convert pci_module_init() to pci_register_driver().

---
Compile-tested with "allyes", "allmod" & "allno" on i386

drivers/mtd/maps/ck804xrom.c +0 -12
index 238d42e..1998172 100644
@@ -310,15 +310,6 @@ static struct pci_device_id ck804xrom_pci_tbl[] = {
 
 MODULE_DEVICE_TABLE(pci, ck804xrom_pci_tbl);
 
-#if 0
-static struct pci_driver ck804xrom_driver = {
-	.name =		MOD_NAME,
-	.id_table =	ck804xrom_pci_tbl,
-	.probe =	ck804xrom_init_one,
-	.remove =	ck804xrom_remove_one,
-};
-#endif
-
 static int __init init_ck804xrom(void)
 {
 	struct pci_dev *pdev;
@@ -337,9 +328,6 @@ static int __init init_ck804xrom(void)
 		return retVal;
 	}
 	return -ENXIO;
-#if 0
-	return pci_module_init(&ck804xrom_driver);
-#endif
 }
 
 static void __exit cleanup_ck804xrom(void)
#1 lore raw

PATCH 1/1 mtd/maps/ck804xrom.c: Remove #if 0'ed code

Remove #if 0'ed code (to get rid of pci_module_init()).

---
Compile-tested with "allyes", "allmod" & "allno" on i386 More suitable description, sorry for the noise

drivers/mtd/maps/ck804xrom.c +0 -0
index 238d42e..1998172 100644
@@ -310,15 +310,6 @@ static struct pci_device_id ck804xrom_pci_tbl[] = {
 

MODULE_DEVICE_TABLE(pci, ck804xrom_pci_tbl);

-#if 0
-static struct pci_driver ck804xrom_driver = {
- .name = MOD_NAME,
- .id_table = ck804xrom_pci_tbl,
- .probe = ck804xrom_init_one,
- .remove = ck804xrom_remove_one,
-};
-#endif
-
static int __init init_ck804xrom(void)

{
	struct pci_dev *pdev;
@@ -337,9 +328,6 @@ static int __init init_ck804xrom(void)
		return retVal;
	}
	return -ENXIO;

-#if 0
- return pci_module_init(&ck804xrom_driver);
-#endif
}

static void __exit cleanup_ck804xrom(void)