convert from pci_module_init to pci_register_driver
Signed-off-by: Christophe Lucas <[email protected]>
Signed-off-by: Domen Puncer <[email protected]>
---
kj-domen/drivers/isdn/tpam/tpam_main.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -puN drivers/isdn/tpam/tpam_main.c~pci_register_driver-drivers_isdn_tpam drivers/isdn/tpam/tpam_main.c
--- kj/drivers/isdn/tpam/tpam_main.c~pci_register_driver-drivers_isdn_tpam 2005-03-05 16:12:25.000000000 +0100
+++ kj-domen/drivers/isdn/tpam/tpam_main.c 2005-03-05 16:12:25.000000000 +0100
@@ -278,7 +278,7 @@ static struct pci_driver tpam_driver = {
static int __init tpam_init(void) {
int ret;
- ret = pci_module_init(&tpam_driver);
+ ret = pci_register_driver(&tpam_driver);
if (ret)
return ret;
printk(KERN_INFO "TurboPAM: %d card%s found, driver loaded.\n",
_
On Sun, Mar 06, 2005 at 11:38:12PM +0100, [email protected] wrote:
>
> convert from pci_module_init to pci_register_driver
>
> Signed-off-by: Christophe Lucas <[email protected]>
> Signed-off-by: Domen Puncer <[email protected]>
> ---
>
>
> kj-domen/drivers/isdn/tpam/tpam_main.c | 2 +-
> 1 files changed, 1 insertion(+), 1 deletion(-)
>
> diff -puN drivers/isdn/tpam/tpam_main.c~pci_register_driver-drivers_isdn_tpam drivers/isdn/tpam/tpam_main.c
> --- kj/drivers/isdn/tpam/tpam_main.c~pci_register_driver-drivers_isdn_tpam 2005-03-05 16:12:25.000000000 +0100
> +++ kj-domen/drivers/isdn/tpam/tpam_main.c 2005-03-05 16:12:25.000000000 +0100
> @@ -278,7 +278,7 @@ static struct pci_driver tpam_driver = {
> static int __init tpam_init(void) {
> int ret;
>
> - ret = pci_module_init(&tpam_driver);
> + ret = pci_register_driver(&tpam_driver);
> if (ret)
> return ret;
> printk(KERN_INFO "TurboPAM: %d card%s found, driver loaded.\n",
Note:
All changes to code drivers/isdn/tpam are obsolate, since the code is
obsolate and I already sent a complete remove patch.
--
Karsten Keil
SuSE Labs
ISDN development