From: Michael Krufky <mkrufky@m1k.net>
To: Otavio Salvador <otavio@debian.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH 9/11] MEDIA: replace all uses of pci_module_init with pci_register_driver
Date: Sun, 04 Dec 2005 16:05:25 -0500 [thread overview]
Message-ID: <43935A15.8010706@m1k.net> (raw)
In-Reply-To: <11336254301170-git-send-email-otavio@debian.org>
Otavio Salvador wrote:
>This patch replace all calls to pci_module_init, that's deprecated and
>will be removed in future, with pci_register_driver that should be
>the used function now.
>
>Signed-off-by: Otavio Salvador <otavio@debian.org>
>
>
Acked-by: Michael Krufky <mkrufky@linuxtv.org>
>
>---
>
> drivers/media/radio/radio-gemtek-pci.c | 2 +-
> drivers/media/radio/radio-maxiradio.c | 2 +-
> drivers/media/video/bttv-driver.c | 2 +-
> drivers/media/video/saa7134/saa7134-core.c | 2 +-
> 4 files changed, 4 insertions(+), 4 deletions(-)
>
>applies-to: f72516fc599b70f5507e6cf69b256b0da72b3646
>fc3bbed930173e0784960f17cf67c229e652f6a0
>diff --git a/drivers/media/radio/radio-gemtek-pci.c b/drivers/media/radio/radio-gemtek-pci.c
>index 630cc78..78b2888 100644
>--- a/drivers/media/radio/radio-gemtek-pci.c
>+++ b/drivers/media/radio/radio-gemtek-pci.c
>@@ -394,7 +394,7 @@ static struct pci_driver gemtek_pci_driv
>
> static int __init gemtek_pci_init_module( void )
> {
>- return pci_module_init( &gemtek_pci_driver );
>+ return pci_register_driver( &gemtek_pci_driver );
> }
>
> static void __exit gemtek_pci_cleanup_module( void )
>diff --git a/drivers/media/radio/radio-maxiradio.c b/drivers/media/radio/radio-maxiradio.c
>index 02d39a5..7b33d8f 100644
>--- a/drivers/media/radio/radio-maxiradio.c
>+++ b/drivers/media/radio/radio-maxiradio.c
>@@ -337,7 +337,7 @@ static struct pci_driver maxiradio_drive
>
> static int __init maxiradio_radio_init(void)
> {
>- return pci_module_init(&maxiradio_driver);
>+ return pci_register_driver(&maxiradio_driver);
> }
>
> static void __exit maxiradio_radio_exit(void)
>diff --git a/drivers/media/video/bttv-driver.c b/drivers/media/video/bttv-driver.c
>index 3c58a2a..cfb720d 100644
>--- a/drivers/media/video/bttv-driver.c
>+++ b/drivers/media/video/bttv-driver.c
>@@ -4253,7 +4253,7 @@ static int bttv_init_module(void)
> bttv_check_chipset();
>
> bus_register(&bttv_sub_bus_type);
>- return pci_module_init(&bttv_pci_driver);
>+ return pci_register_driver(&bttv_pci_driver);
> }
>
> static void bttv_cleanup_module(void)
>diff --git a/drivers/media/video/saa7134/saa7134-core.c b/drivers/media/video/saa7134/saa7134-core.c
>index 1a093bf..18aa5d4 100644
>--- a/drivers/media/video/saa7134/saa7134-core.c
>+++ b/drivers/media/video/saa7134/saa7134-core.c
>@@ -1155,7 +1155,7 @@ static int saa7134_init(void)
> printk(KERN_INFO "saa7130/34: snapshot date %04d-%02d-%02d\n",
> SNAPSHOT/10000, (SNAPSHOT/100)%100, SNAPSHOT%100);
> #endif
>- return pci_module_init(&saa7134_pci_driver);
>+ return pci_register_driver(&saa7134_pci_driver);
> }
>
> static void saa7134_fini(void)
>---
>0.99.9k
>
>
>-
>To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at http://vger.kernel.org/majordomo-info.html
>Please read the FAQ at http://www.tux.org/lkml/
>
>
next prev parent reply other threads:[~2005-12-04 21:04 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-03 15:57 [PATCH 1/11] OSS: replace all uses of pci_module_init with pci_register_driver Otavio Salvador
2005-12-03 15:57 ` [PATCH 2/11] SCSI: " Otavio Salvador
2005-12-03 15:57 ` [PATCH 3/11] SERIAL: " Otavio Salvador
2005-12-03 15:57 ` [PATCH 4/11] VIDEO: " Otavio Salvador
2005-12-03 15:57 ` [PATCH 5/11] NET: " Otavio Salvador
2005-12-03 15:57 ` [PATCH 6/11] i386: " Otavio Salvador
2005-12-03 15:57 ` [PATCH 7/11] MIPS: " Otavio Salvador
2005-12-03 15:57 ` [PATCH 8/11] BLOCK: " Otavio Salvador
2005-12-03 15:57 ` [PATCH 9/11] MEDIA: " Otavio Salvador
2005-12-03 15:57 ` [PATCH 10/11] PARPORT: " Otavio Salvador
2005-12-03 15:57 ` [PATCH 11/11] PCMCIA: " Otavio Salvador
2005-12-04 21:05 ` Michael Krufky [this message]
2005-12-03 18:56 ` [PATCH 2/11] SCSI: " Richard Knutsson
2005-12-03 16:12 ` [PATCH 1/11] OSS: " Otavio Salvador
2005-12-03 16:24 ` [PATCH] Revert my comment change did in [PATCH] " Otavio Salvador
2005-12-03 20:56 ` [PATCH 1/11] " Greg KH
2005-12-03 21:15 ` Otavio Salvador
2005-12-03 22:27 ` Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=43935A15.8010706@m1k.net \
--to=mkrufky@m1k.net \
--cc=linux-kernel@vger.kernel.org \
--cc=otavio@debian.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.