[PATCH] drivers/w1/*: convert to pci_register_driver

From: Greg KH
Date: Fri Mar 04 2005 - 17:50:21 EST


ChangeSet 1.2086, 2005/03/02 16:59:57-08:00, c.lucas@xxxxxxxxxxx

[PATCH] drivers/w1/*: convert to pci_register_driver

convert from pci_module_init to pci_register_driver
(from:http://kerneljanitors.org/TODO).

Signed-off-by: Christophe Lucas <c.lucas@xxxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxx>


drivers/w1/matrox_w1.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)


diff -Nru a/drivers/w1/matrox_w1.c b/drivers/w1/matrox_w1.c
--- a/drivers/w1/matrox_w1.c 2005-03-04 12:37:44 -08:00
+++ b/drivers/w1/matrox_w1.c 2005-03-04 12:37:44 -08:00
@@ -235,7 +235,7 @@

static int __init matrox_w1_init(void)
{
- return pci_module_init(&matrox_w1_pci_driver);
+ return pci_register_driver(&matrox_w1_pci_driver);
}

static void __exit matrox_w1_fini(void)

-
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/