Use pci_dev_put to release the refcount for the Intel 82441FX device

This commit is contained in:
guillemj
2008-06-24 04:24:22 +00:00
parent ec48aba80f
commit 858e6f7e15
2 changed files with 8 additions and 0 deletions

View File

@@ -146,6 +146,7 @@
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,73)
#define pci_get_device pci_find_device
#define pci_dev_put(dev)
#endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
@@ -670,6 +671,7 @@ static int setmtrr_3dfx(void)
pci_write_config_byte(dev, 0x82, dlc);
printk("3dfx: PIIX3: Enabling Passive Release\n");
}
pci_dev_put(dev);
}
/*

View File

@@ -1,3 +1,9 @@
2008-06-24 Guillem Jover <guillem@hadrons.org>
* 3dfx_driver.c (pci_dev_put): Define to nothing on kernels < 2.5.73.
(setmtrr_3dfx): Call pci_dev_put to release the refcount on the
Intel 82441FX PCI device when done with it.
2008-06-22 Guillem Jover <guillem@hadrons.org>
* 3dfx_driver.c (id_table_3dfx): Terminate the list with an empty