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

Greg KH
2005-03-04T21:48:00Z

ChangeSet 1.1998.11.16, 2005/02/17 15:05:08-08:00, c.lucas@ifrance.com

[PATCH] drivers/pci/*: 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@ifrance.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

drivers/pci/pcie/portdrv_pci.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

diff -Nru a/drivers/pci/pcie/portdrv_pci.c b/drivers/pci/pcie/portdrv_pci.c
--- a/drivers/pci/pcie/portdrv_pci.c 2005-03-04 12:42:24 -08:00
+++ b/drivers/pci/pcie/portdrv_pci.c 2005-03-04 12:42:24 -08:00
@@ -106,7 +106,7 @@
int retval = 0;

pcie_port_bus_register();
- retval = pci_module_init(&pcie_portdrv);
+ retval = pci_register_driver(&pcie_portdrv);
if (retval)
pcie_port_bus_unregister();
return retval;