mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-29 07:04:10 +08:00
drivers/net: Remove deprecated use of pci_module_init()
From: Michal Piotrowski <michal.k.k.piotrowski@gmail.com> Signed-off-by: Michal Piotrowski <michal.k.k.piotrowski@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
parent
5243a37b79
commit
299176206b
@ -3169,7 +3169,7 @@ static int __init vortex_init(void)
|
||||
{
|
||||
int pci_rc, eisa_rc;
|
||||
|
||||
pci_rc = pci_module_init(&vortex_driver);
|
||||
pci_rc = pci_register_driver(&vortex_driver);
|
||||
eisa_rc = vortex_eisa_init();
|
||||
|
||||
if (pci_rc == 0)
|
||||
|
@ -2098,7 +2098,7 @@ static int __init cp_init (void)
|
||||
#ifdef MODULE
|
||||
printk("%s", version);
|
||||
#endif
|
||||
return pci_module_init (&cp_driver);
|
||||
return pci_register_driver(&cp_driver);
|
||||
}
|
||||
|
||||
static void __exit cp_exit (void)
|
||||
|
@ -2629,7 +2629,7 @@ static int __init rtl8139_init_module (void)
|
||||
printk (KERN_INFO RTL8139_DRIVER_NAME "\n");
|
||||
#endif
|
||||
|
||||
return pci_module_init (&rtl8139_pci_driver);
|
||||
return pci_register_driver(&rtl8139_pci_driver);
|
||||
}
|
||||
|
||||
|
||||
|
@ -725,7 +725,7 @@ static struct pci_driver acenic_pci_driver = {
|
||||
|
||||
static int __init acenic_init(void)
|
||||
{
|
||||
return pci_module_init(&acenic_pci_driver);
|
||||
return pci_register_driver(&acenic_pci_driver);
|
||||
}
|
||||
|
||||
static void __exit acenic_exit(void)
|
||||
|
@ -2158,7 +2158,7 @@ static struct pci_driver amd8111e_driver = {
|
||||
|
||||
static int __init amd8111e_init(void)
|
||||
{
|
||||
return pci_module_init(&amd8111e_driver);
|
||||
return pci_register_driver(&amd8111e_driver);
|
||||
}
|
||||
|
||||
static void __exit amd8111e_cleanup(void)
|
||||
|
@ -177,7 +177,7 @@ static struct pci_driver com20020pci_driver = {
|
||||
static int __init com20020pci_init(void)
|
||||
{
|
||||
BUGLVL(D_NORMAL) printk(VERSION);
|
||||
return pci_module_init(&com20020pci_driver);
|
||||
return pci_register_driver(&com20020pci_driver);
|
||||
}
|
||||
|
||||
static void __exit com20020pci_cleanup(void)
|
||||
|
@ -2354,7 +2354,7 @@ static int __init b44_init(void)
|
||||
dma_desc_align_mask = ~(dma_desc_align_size - 1);
|
||||
dma_desc_sync_size = max_t(unsigned int, dma_desc_align_size, sizeof(struct dma_desc));
|
||||
|
||||
return pci_module_init(&b44_driver);
|
||||
return pci_register_driver(&b44_driver);
|
||||
}
|
||||
|
||||
static void __exit b44_cleanup(void)
|
||||
|
@ -6016,7 +6016,7 @@ static struct pci_driver bnx2_pci_driver = {
|
||||
|
||||
static int __init bnx2_init(void)
|
||||
{
|
||||
return pci_module_init(&bnx2_pci_driver);
|
||||
return pci_register_driver(&bnx2_pci_driver);
|
||||
}
|
||||
|
||||
static void __exit bnx2_cleanup(void)
|
||||
|
@ -5245,7 +5245,7 @@ static int __init cas_init(void)
|
||||
else
|
||||
link_transition_timeout = 0;
|
||||
|
||||
return pci_module_init(&cas_driver);
|
||||
return pci_register_driver(&cas_driver);
|
||||
}
|
||||
|
||||
static void __exit cas_cleanup(void)
|
||||
|
@ -1243,7 +1243,7 @@ static struct pci_driver driver = {
|
||||
|
||||
static int __init t1_init_module(void)
|
||||
{
|
||||
return pci_module_init(&driver);
|
||||
return pci_register_driver(&driver);
|
||||
}
|
||||
|
||||
static void __exit t1_cleanup_module(void)
|
||||
|
@ -3444,7 +3444,7 @@ static int __init dfx_init(void)
|
||||
{
|
||||
int rc_pci, rc_eisa;
|
||||
|
||||
rc_pci = pci_module_init(&dfx_driver);
|
||||
rc_pci = pci_register_driver(&dfx_driver);
|
||||
if (rc_pci >= 0) dfx_have_pci = 1;
|
||||
|
||||
rc_eisa = dfx_eisa_init();
|
||||
|
@ -1815,7 +1815,7 @@ static struct pci_driver rio_driver = {
|
||||
static int __init
|
||||
rio_init (void)
|
||||
{
|
||||
return pci_module_init (&rio_driver);
|
||||
return pci_register_driver(&rio_driver);
|
||||
}
|
||||
|
||||
static void __exit
|
||||
|
@ -2873,7 +2873,7 @@ static int __init e100_init_module(void)
|
||||
printk(KERN_INFO PFX "%s, %s\n", DRV_DESCRIPTION, DRV_VERSION);
|
||||
printk(KERN_INFO PFX "%s\n", DRV_COPYRIGHT);
|
||||
}
|
||||
return pci_module_init(&e100_driver);
|
||||
return pci_register_driver(&e100_driver);
|
||||
}
|
||||
|
||||
static void __exit e100_cleanup_module(void)
|
||||
|
@ -245,7 +245,7 @@ e1000_init_module(void)
|
||||
|
||||
printk(KERN_INFO "%s\n", e1000_copyright);
|
||||
|
||||
ret = pci_module_init(&e1000_driver);
|
||||
ret = pci_register_driver(&e1000_driver);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
@ -2385,7 +2385,7 @@ static int __init eepro100_init_module(void)
|
||||
#ifdef MODULE
|
||||
printk(version);
|
||||
#endif
|
||||
return pci_module_init(&eepro100_driver);
|
||||
return pci_register_driver(&eepro100_driver);
|
||||
}
|
||||
|
||||
static void __exit eepro100_cleanup_module(void)
|
||||
|
@ -1604,7 +1604,7 @@ static int __init epic_init (void)
|
||||
version, version2, version3);
|
||||
#endif
|
||||
|
||||
return pci_module_init (&epic_driver);
|
||||
return pci_register_driver(&epic_driver);
|
||||
}
|
||||
|
||||
|
||||
|
@ -1984,7 +1984,7 @@ static int __init fealnx_init(void)
|
||||
printk(version);
|
||||
#endif
|
||||
|
||||
return pci_module_init(&fealnx_driver);
|
||||
return pci_register_driver(&fealnx_driver);
|
||||
}
|
||||
|
||||
static void __exit fealnx_exit(void)
|
||||
|
@ -4667,7 +4667,7 @@ static struct pci_driver driver = {
|
||||
static int __init init_nic(void)
|
||||
{
|
||||
printk(KERN_INFO "forcedeth.c: Reverse Engineered nForce ethernet driver. Version %s.\n", FORCEDETH_VERSION);
|
||||
return pci_module_init(&driver);
|
||||
return pci_register_driver(&driver);
|
||||
}
|
||||
|
||||
static void __exit exit_nic(void)
|
||||
|
@ -162,7 +162,7 @@ ixgb_init_module(void)
|
||||
|
||||
printk(KERN_INFO "%s\n", ixgb_copyright);
|
||||
|
||||
return pci_module_init(&ixgb_driver);
|
||||
return pci_register_driver(&ixgb_driver);
|
||||
}
|
||||
|
||||
module_init(ixgb_init_module);
|
||||
|
@ -3246,7 +3246,7 @@ static int __init natsemi_init_mod (void)
|
||||
printk(version);
|
||||
#endif
|
||||
|
||||
return pci_module_init (&natsemi_driver);
|
||||
return pci_register_driver(&natsemi_driver);
|
||||
}
|
||||
|
||||
static void __exit natsemi_exit_mod (void)
|
||||
|
@ -702,7 +702,7 @@ static int __init ne2k_pci_init(void)
|
||||
#ifdef MODULE
|
||||
printk(version);
|
||||
#endif
|
||||
return pci_module_init (&ne2k_driver);
|
||||
return pci_register_driver(&ne2k_driver);
|
||||
}
|
||||
|
||||
|
||||
|
@ -2178,7 +2178,7 @@ static struct pci_driver driver = {
|
||||
static int __init ns83820_init(void)
|
||||
{
|
||||
printk(KERN_INFO "ns83820.c: National Semiconductor DP83820 10/100/1000 driver.\n");
|
||||
return pci_module_init(&driver);
|
||||
return pci_register_driver(&driver);
|
||||
}
|
||||
|
||||
static void __exit ns83820_exit(void)
|
||||
|
@ -1963,7 +1963,7 @@ static int __init netdrv_init_module (void)
|
||||
#ifdef MODULE
|
||||
printk(version);
|
||||
#endif
|
||||
return pci_module_init (&netdrv_pci_driver);
|
||||
return pci_register_driver(&netdrv_pci_driver);
|
||||
}
|
||||
|
||||
|
||||
|
@ -2969,7 +2969,7 @@ static int __init pcnet32_init_module(void)
|
||||
tx_start = tx_start_pt;
|
||||
|
||||
/* find the PCI devices */
|
||||
if (!pci_module_init(&pcnet32_driver))
|
||||
if (!pci_register_driver(&pcnet32_driver))
|
||||
pcnet32_have_pci = 1;
|
||||
|
||||
/* should we find any remaining VLbus devices ? */
|
||||
|
@ -2809,7 +2809,7 @@ static struct pci_driver rtl8169_pci_driver = {
|
||||
static int __init
|
||||
rtl8169_init_module(void)
|
||||
{
|
||||
return pci_module_init(&rtl8169_pci_driver);
|
||||
return pci_register_driver(&rtl8169_pci_driver);
|
||||
}
|
||||
|
||||
static void __exit
|
||||
|
@ -1736,7 +1736,7 @@ static struct pci_driver rr_driver = {
|
||||
|
||||
static int __init rr_init_module(void)
|
||||
{
|
||||
return pci_module_init(&rr_driver);
|
||||
return pci_register_driver(&rr_driver);
|
||||
}
|
||||
|
||||
static void __exit rr_cleanup_module(void)
|
||||
|
@ -7233,7 +7233,7 @@ static void __devexit s2io_rem_nic(struct pci_dev *pdev)
|
||||
|
||||
int __init s2io_starter(void)
|
||||
{
|
||||
return pci_module_init(&s2io_driver);
|
||||
return pci_register_driver(&s2io_driver);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1131,7 +1131,7 @@ static struct pci_driver saa9730_driver = {
|
||||
|
||||
static int __init saa9730_init(void)
|
||||
{
|
||||
return pci_module_init(&saa9730_driver);
|
||||
return pci_register_driver(&saa9730_driver);
|
||||
}
|
||||
|
||||
static void __exit saa9730_cleanup(void)
|
||||
|
@ -1871,7 +1871,7 @@ static struct pci_driver sis190_pci_driver = {
|
||||
|
||||
static int __init sis190_init_module(void)
|
||||
{
|
||||
return pci_module_init(&sis190_pci_driver);
|
||||
return pci_register_driver(&sis190_pci_driver);
|
||||
}
|
||||
|
||||
static void __exit sis190_cleanup_module(void)
|
||||
|
@ -2496,7 +2496,7 @@ static int __init sis900_init_module(void)
|
||||
printk(version);
|
||||
#endif
|
||||
|
||||
return pci_module_init(&sis900_pci_driver);
|
||||
return pci_register_driver(&sis900_pci_driver);
|
||||
}
|
||||
|
||||
static void __exit sis900_cleanup_module(void)
|
||||
|
@ -5133,7 +5133,7 @@ static struct pci_driver skge_driver = {
|
||||
|
||||
static int __init skge_init(void)
|
||||
{
|
||||
return pci_module_init(&skge_driver);
|
||||
return pci_register_driver(&skge_driver);
|
||||
}
|
||||
|
||||
static void __exit skge_exit(void)
|
||||
|
@ -2280,7 +2280,7 @@ static struct pci_driver skfddi_pci_driver = {
|
||||
|
||||
static int __init skfd_init(void)
|
||||
{
|
||||
return pci_module_init(&skfddi_pci_driver);
|
||||
return pci_register_driver(&skfddi_pci_driver);
|
||||
}
|
||||
|
||||
static void __exit skfd_exit(void)
|
||||
|
@ -3510,7 +3510,7 @@ static struct pci_driver skge_driver = {
|
||||
|
||||
static int __init skge_init_module(void)
|
||||
{
|
||||
return pci_module_init(&skge_driver);
|
||||
return pci_register_driver(&skge_driver);
|
||||
}
|
||||
|
||||
static void __exit skge_cleanup_module(void)
|
||||
|
@ -2053,7 +2053,7 @@ static int __init starfire_init (void)
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
return pci_module_init (&starfire_driver);
|
||||
return pci_register_driver(&starfire_driver);
|
||||
}
|
||||
|
||||
|
||||
|
@ -1733,7 +1733,7 @@ static int __init sundance_init(void)
|
||||
#ifdef MODULE
|
||||
printk(version);
|
||||
#endif
|
||||
return pci_module_init(&sundance_driver);
|
||||
return pci_register_driver(&sundance_driver);
|
||||
}
|
||||
|
||||
static void __exit sundance_exit(void)
|
||||
|
@ -3194,7 +3194,7 @@ static struct pci_driver gem_driver = {
|
||||
|
||||
static int __init gem_init(void)
|
||||
{
|
||||
return pci_module_init(&gem_driver);
|
||||
return pci_register_driver(&gem_driver);
|
||||
}
|
||||
|
||||
static void __exit gem_cleanup(void)
|
||||
|
@ -1725,7 +1725,7 @@ static struct pci_driver tc35815_driver = {
|
||||
|
||||
static int __init tc35815_init_module(void)
|
||||
{
|
||||
return pci_module_init(&tc35815_driver);
|
||||
return pci_register_driver(&tc35815_driver);
|
||||
}
|
||||
|
||||
static void __exit tc35815_cleanup_module(void)
|
||||
|
@ -11819,7 +11819,7 @@ static struct pci_driver tg3_driver = {
|
||||
|
||||
static int __init tg3_init(void)
|
||||
{
|
||||
return pci_module_init(&tg3_driver);
|
||||
return pci_register_driver(&tg3_driver);
|
||||
}
|
||||
|
||||
static void __exit tg3_cleanup(void)
|
||||
|
@ -1815,7 +1815,7 @@ static struct pci_driver xl_3c359_driver = {
|
||||
|
||||
static int __init xl_pci_init (void)
|
||||
{
|
||||
return pci_module_init (&xl_3c359_driver);
|
||||
return pci_register_driver(&xl_3c359_driver);
|
||||
}
|
||||
|
||||
|
||||
|
@ -1998,7 +1998,7 @@ static struct pci_driver streamer_pci_driver = {
|
||||
};
|
||||
|
||||
static int __init streamer_init_module(void) {
|
||||
return pci_module_init(&streamer_pci_driver);
|
||||
return pci_register_driver(&streamer_pci_driver);
|
||||
}
|
||||
|
||||
static void __exit streamer_cleanup_module(void) {
|
||||
|
@ -2172,7 +2172,7 @@ static int __init de_init (void)
|
||||
#ifdef MODULE
|
||||
printk("%s", version);
|
||||
#endif
|
||||
return pci_module_init (&de_driver);
|
||||
return pci_register_driver(&de_driver);
|
||||
}
|
||||
|
||||
static void __exit de_exit (void)
|
||||
|
@ -5754,7 +5754,7 @@ static int __init de4x5_module_init (void)
|
||||
int err = 0;
|
||||
|
||||
#ifdef CONFIG_PCI
|
||||
err = pci_module_init (&de4x5_pci_driver);
|
||||
err = pci_register_driver(&de4x5_pci_driver);
|
||||
#endif
|
||||
#ifdef CONFIG_EISA
|
||||
err |= eisa_driver_register (&de4x5_eisa_driver);
|
||||
|
@ -2039,7 +2039,7 @@ static int __init dmfe_init_module(void)
|
||||
if (HPNA_NoiseFloor > 15)
|
||||
HPNA_NoiseFloor = 0;
|
||||
|
||||
rc = pci_module_init(&dmfe_driver);
|
||||
rc = pci_register_driver(&dmfe_driver);
|
||||
if (rc < 0)
|
||||
return rc;
|
||||
|
||||
|
@ -1849,7 +1849,7 @@ static int __init tulip_init (void)
|
||||
tulip_max_interrupt_work = max_interrupt_work;
|
||||
|
||||
/* probe for and init boards */
|
||||
return pci_module_init (&tulip_driver);
|
||||
return pci_register_driver(&tulip_driver);
|
||||
}
|
||||
|
||||
|
||||
|
@ -1689,7 +1689,7 @@ static struct pci_driver w840_driver = {
|
||||
static int __init w840_init(void)
|
||||
{
|
||||
printk(version);
|
||||
return pci_module_init(&w840_driver);
|
||||
return pci_register_driver(&w840_driver);
|
||||
}
|
||||
|
||||
static void __exit w840_exit(void)
|
||||
|
@ -1707,7 +1707,7 @@ static int __init xircom_init(void)
|
||||
#ifdef MODULE
|
||||
printk(version);
|
||||
#endif
|
||||
return pci_module_init(&xircom_driver);
|
||||
return pci_register_driver(&xircom_driver);
|
||||
}
|
||||
|
||||
|
||||
|
@ -2660,7 +2660,7 @@ static struct pci_driver typhoon_driver = {
|
||||
static int __init
|
||||
typhoon_init(void)
|
||||
{
|
||||
return pci_module_init(&typhoon_driver);
|
||||
return pci_register_driver(&typhoon_driver);
|
||||
}
|
||||
|
||||
static void __exit
|
||||
|
@ -2005,7 +2005,7 @@ static int __init rhine_init(void)
|
||||
#ifdef MODULE
|
||||
printk(version);
|
||||
#endif
|
||||
return pci_module_init(&rhine_driver);
|
||||
return pci_register_driver(&rhine_driver);
|
||||
}
|
||||
|
||||
|
||||
|
@ -2250,7 +2250,7 @@ static int __init velocity_init_module(void)
|
||||
int ret;
|
||||
|
||||
velocity_register_notifier();
|
||||
ret = pci_module_init(&velocity_driver);
|
||||
ret = pci_register_driver(&velocity_driver);
|
||||
if (ret < 0)
|
||||
velocity_unregister_notifier();
|
||||
return ret;
|
||||
|
@ -2062,7 +2062,7 @@ static struct pci_driver dscc4_driver = {
|
||||
|
||||
static int __init dscc4_init_module(void)
|
||||
{
|
||||
return pci_module_init(&dscc4_driver);
|
||||
return pci_register_driver(&dscc4_driver);
|
||||
}
|
||||
|
||||
static void __exit dscc4_cleanup_module(void)
|
||||
|
@ -2697,7 +2697,7 @@ fst_init(void)
|
||||
for (i = 0; i < FST_MAX_CARDS; i++)
|
||||
fst_card_array[i] = NULL;
|
||||
spin_lock_init(&fst_work_q_lock);
|
||||
return pci_module_init(&fst_driver);
|
||||
return pci_register_driver(&fst_driver);
|
||||
}
|
||||
|
||||
static void __exit
|
||||
|
@ -1790,7 +1790,7 @@ static struct pci_driver lmc_driver = {
|
||||
|
||||
static int __init init_lmc(void)
|
||||
{
|
||||
return pci_module_init(&lmc_driver);
|
||||
return pci_register_driver(&lmc_driver);
|
||||
}
|
||||
|
||||
static void __exit exit_lmc(void)
|
||||
|
@ -3677,7 +3677,7 @@ static struct pci_driver cpc_driver = {
|
||||
|
||||
static int __init cpc_init(void)
|
||||
{
|
||||
return pci_module_init(&cpc_driver);
|
||||
return pci_register_driver(&cpc_driver);
|
||||
}
|
||||
|
||||
static void __exit cpc_cleanup_module(void)
|
||||
|
@ -476,7 +476,7 @@ static int __init pci200_init_module(void)
|
||||
printk(KERN_ERR "pci200syn: Invalid PCI clock frequency\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
return pci_module_init(&pci200_pci_driver);
|
||||
return pci_register_driver(&pci200_pci_driver);
|
||||
}
|
||||
|
||||
|
||||
|
@ -837,7 +837,7 @@ static int __init wanxl_init_module(void)
|
||||
#ifdef MODULE
|
||||
printk(KERN_INFO "%s\n", version);
|
||||
#endif
|
||||
return pci_module_init(&wanxl_pci_driver);
|
||||
return pci_register_driver(&wanxl_pci_driver);
|
||||
}
|
||||
|
||||
static void __exit wanxl_cleanup_module(void)
|
||||
|
@ -76,7 +76,7 @@ static void __devexit atmel_pci_remove(struct pci_dev *pdev)
|
||||
|
||||
static int __init atmel_init_module(void)
|
||||
{
|
||||
return pci_module_init(&atmel_driver);
|
||||
return pci_register_driver(&atmel_driver);
|
||||
}
|
||||
|
||||
static void __exit atmel_cleanup_module(void)
|
||||
|
@ -6531,7 +6531,7 @@ static int __init ipw2100_init(void)
|
||||
printk(KERN_INFO DRV_NAME ": %s, %s\n", DRV_DESCRIPTION, DRV_VERSION);
|
||||
printk(KERN_INFO DRV_NAME ": %s\n", DRV_COPYRIGHT);
|
||||
|
||||
ret = pci_module_init(&ipw2100_pci_driver);
|
||||
ret = pci_register_driver(&ipw2100_pci_driver);
|
||||
|
||||
#ifdef CONFIG_IPW2100_DEBUG
|
||||
ipw2100_debug_level = debug;
|
||||
|
@ -11753,7 +11753,7 @@ static int __init ipw_init(void)
|
||||
printk(KERN_INFO DRV_NAME ": " DRV_DESCRIPTION ", " DRV_VERSION "\n");
|
||||
printk(KERN_INFO DRV_NAME ": " DRV_COPYRIGHT "\n");
|
||||
|
||||
ret = pci_module_init(&ipw_driver);
|
||||
ret = pci_register_driver(&ipw_driver);
|
||||
if (ret) {
|
||||
IPW_ERROR("Unable to initialize PCI module\n");
|
||||
return ret;
|
||||
|
@ -304,7 +304,7 @@ MODULE_LICENSE("Dual MPL/GPL");
|
||||
static int __init orinoco_nortel_init(void)
|
||||
{
|
||||
printk(KERN_DEBUG "%s\n", version);
|
||||
return pci_module_init(&orinoco_nortel_driver);
|
||||
return pci_register_driver(&orinoco_nortel_driver);
|
||||
}
|
||||
|
||||
static void __exit orinoco_nortel_exit(void)
|
||||
|
@ -244,7 +244,7 @@ MODULE_LICENSE("Dual MPL/GPL");
|
||||
static int __init orinoco_pci_init(void)
|
||||
{
|
||||
printk(KERN_DEBUG "%s\n", version);
|
||||
return pci_module_init(&orinoco_pci_driver);
|
||||
return pci_register_driver(&orinoco_pci_driver);
|
||||
}
|
||||
|
||||
static void __exit orinoco_pci_exit(void)
|
||||
|
@ -351,7 +351,7 @@ MODULE_LICENSE("Dual MPL/GPL");
|
||||
static int __init orinoco_plx_init(void)
|
||||
{
|
||||
printk(KERN_DEBUG "%s\n", version);
|
||||
return pci_module_init(&orinoco_plx_driver);
|
||||
return pci_register_driver(&orinoco_plx_driver);
|
||||
}
|
||||
|
||||
static void __exit orinoco_plx_exit(void)
|
||||
|
@ -228,7 +228,7 @@ MODULE_LICENSE("Dual MPL/GPL");
|
||||
static int __init orinoco_tmd_init(void)
|
||||
{
|
||||
printk(KERN_DEBUG "%s\n", version);
|
||||
return pci_module_init(&orinoco_tmd_driver);
|
||||
return pci_register_driver(&orinoco_tmd_driver);
|
||||
}
|
||||
|
||||
static void __exit orinoco_tmd_exit(void)
|
||||
|
@ -313,7 +313,7 @@ prism54_module_init(void)
|
||||
|
||||
__bug_on_wrong_struct_sizes ();
|
||||
|
||||
return pci_module_init(&prism54_driver);
|
||||
return pci_register_driver(&prism54_driver);
|
||||
}
|
||||
|
||||
/* by the time prism54_module_exit() terminates, as a postcondition
|
||||
|
@ -1434,7 +1434,7 @@ static int __init yellowfin_init (void)
|
||||
#ifdef MODULE
|
||||
printk(version);
|
||||
#endif
|
||||
return pci_module_init (&yellowfin_driver);
|
||||
return pci_register_driver(&yellowfin_driver);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user