All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mtd/maps/ck804xrom.c: pci_module_init to pci_register_driver
@ 2007-02-14  0:40 ` Richard Knutsson
  0 siblings, 0 replies; 3+ messages in thread
From: Richard Knutsson @ 2007-02-14  0:40 UTC (permalink / raw)
  To: Ryan Jackson, Dave Olsen, David Woodhouse
  Cc: linux-mtd, linux-kernel, Richard Knutsson

Convert pci_module_init() to pci_register_driver().

Signed-off-by: Richard Knutsson <ricknu-0@student.ltu.se>
---
Compile-tested with "allyes", "allmod" & "allno" on i386


diff --git a/drivers/mtd/maps/ck804xrom.c b/drivers/mtd/maps/ck804xrom.c
index 238d42e..1998172 100644
--- a/drivers/mtd/maps/ck804xrom.c
+++ b/drivers/mtd/maps/ck804xrom.c
@@ -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)

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH] mtd/maps/ck804xrom.c: pci_module_init to pci_register_driver
@ 2007-02-14  0:40 ` Richard Knutsson
  0 siblings, 0 replies; 3+ messages in thread
From: Richard Knutsson @ 2007-02-14  0:40 UTC (permalink / raw)
  To: Ryan Jackson, Dave Olsen, David Woodhouse
  Cc: Richard Knutsson, linux-mtd, linux-kernel

Convert pci_module_init() to pci_register_driver().

Signed-off-by: Richard Knutsson <ricknu-0@student.ltu.se>
---
Compile-tested with "allyes", "allmod" & "allno" on i386


diff --git a/drivers/mtd/maps/ck804xrom.c b/drivers/mtd/maps/ck804xrom.c
index 238d42e..1998172 100644
--- a/drivers/mtd/maps/ck804xrom.c
+++ b/drivers/mtd/maps/ck804xrom.c
@@ -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)

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH] mtd/maps/ck804xrom.c: Remove #if 0'ed code
  2007-02-14  0:40 ` Richard Knutsson
  (?)
@ 2007-02-14  0:54 ` Richard Knutsson
  -1 siblings, 0 replies; 3+ messages in thread
From: Richard Knutsson @ 2007-02-14  0:54 UTC (permalink / raw)
  To: Ryan Jackson, Dave Olsen, David Woodhouse; +Cc: linux-mtd, linux-kernel

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

Signed-off-by: Richard Knutsson <ricknu-0@student.ltu.se>
---
Compile-tested with "allyes", "allmod" & "allno" on i386
More suitable description, sorry for the noise


diff --git a/drivers/mtd/maps/ck804xrom.c b/drivers/mtd/maps/ck804xrom.c
index 238d42e..1998172 100644
--- a/drivers/mtd/maps/ck804xrom.c
+++ b/drivers/mtd/maps/ck804xrom.c
@@ -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)



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-02-14  0:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-14  0:40 [PATCH] mtd/maps/ck804xrom.c: pci_module_init to pci_register_driver Richard Knutsson
2007-02-14  0:40 ` Richard Knutsson
2007-02-14  0:54 ` [PATCH] mtd/maps/ck804xrom.c: Remove #if 0'ed code Richard Knutsson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.