[DVB patch 42/48] convert from pci_module_init to pci_register_driver

Johannes Stezenbach
2005-03-22T02:06:52Z

[-- Attachment #1: dvb-janitor-pci-init.patch --]
[-- Type: text/plain, Size: 1582 bytes --]

>From : http://kerneljanitors.org/TODO
o convert from pci_module_init to pci_register_driver

Signed-off-by: Christophe Lucas <c.lucas@ifrance.com>
Signed-off-by: Domen Puncer <domen@coderock.org>
Signed-off-by: Johannes Stezenbach <js@linuxtv.org>

b2c2/skystar2.c | 2 +-
bt8xx/bt878.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

Index: linux-2.6.12-rc1-mm1/drivers/media/dvb/b2c2/skystar2.c
===================================================================
--- linux-2.6.12-rc1-mm1.orig/drivers/media/dvb/b2c2/skystar2.c 2005-03-22 00:16:28.000000000 +0100
+++ linux-2.6.12-rc1-mm1/drivers/media/dvb/b2c2/skystar2.c 2005-03-22 00:28:10.000000000 +0100
@@ -2629,7 +2629,7 @@ static struct pci_driver skystar2_pci_dr

static int skystar2_init(void)
{
- return pci_module_init(&skystar2_pci_driver);
+ return pci_register_driver(&skystar2_pci_driver);
}

static void skystar2_cleanup(void)
Index: linux-2.6.12-rc1-mm1/drivers/media/dvb/bt8xx/bt878.c
===================================================================
--- linux-2.6.12-rc1-mm1.orig/drivers/media/dvb/bt8xx/bt878.c 2005-03-22 00:16:28.000000000 +0100
+++ linux-2.6.12-rc1-mm1/drivers/media/dvb/bt8xx/bt878.c 2005-03-22 00:28:10.000000000 +0100
@@ -563,7 +563,7 @@ static int bt878_init_module(void)
/* later we register inside of bt878_find_audio_dma()
* because we may want to ignore certain cards */
bt878_pci_driver_registered = 1;
- return pci_module_init(&bt878_pci_driver);
+ return pci_register_driver(&bt878_pci_driver);
}

static void bt878_cleanup_module(void)

--