diff options
Diffstat (limited to 'linux/drivers/media/common/saa7146_core.c')
-rw-r--r-- | linux/drivers/media/common/saa7146_core.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/linux/drivers/media/common/saa7146_core.c b/linux/drivers/media/common/saa7146_core.c index 247e1c859..7e8f9c87c 100644 --- a/linux/drivers/media/common/saa7146_core.c +++ b/linux/drivers/media/common/saa7146_core.c @@ -195,7 +195,7 @@ static void interrupt_hw(int irq, void *dev_id, struct pt_regs *regs) /* configuration-functions */ static -int saa7146_init_one(struct pci_dev *pci, const struct pci_device_id *ent) +int __devinit saa7146_init_one(struct pci_dev *pci, const struct pci_device_id *ent) { unsigned long adr = 0, len = 0; struct saa7146_dev* dev = kmalloc (sizeof(struct saa7146_dev),GFP_KERNEL); @@ -354,7 +354,7 @@ out: } static -void saa7146_remove_one(struct pci_dev *pdev) +void __devexit saa7146_remove_one(struct pci_dev *pdev) { struct saa7146_dev* dev = (struct saa7146_dev*) pci_get_drvdata(pdev); DEB_EE(("dev:%p\n",dev)); @@ -399,7 +399,7 @@ int saa7146_register_extension(struct saa7146_extension* ext) ext->driver.name = ext->name; ext->driver.id_table = ext->pci_tbl; ext->driver.probe = saa7146_init_one; - ext->driver.remove = saa7146_remove_one; + ext->driver.remove = __devexit_p(saa7146_remove_one); printk("saa7146: register extension '%s'.\n",ext->name); return pci_module_init(&ext->driver); @@ -414,7 +414,7 @@ int saa7146_unregister_extension(struct saa7146_extension* ext) } static -int saa7146_init_module(void) +int __init saa7146_init_module(void) { if( 0 == initialized ) { INIT_LIST_HEAD(&saa7146_devices); |