summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2005-11-07 08:39:30 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2006-01-09 21:13:14 +0100
commit94517252b7c8e26de7238eb2c1450cb7c69f1af6 (patch)
tree589a43eb99ebe5ef5f714e3b01ba674c2ca414cf /arch
parent[PATCH] PCI: pci_find_device remove (alpha/kernel/sys_sio.c) (diff)
downloadlinux-94517252b7c8e26de7238eb2c1450cb7c69f1af6.tar.xz
linux-94517252b7c8e26de7238eb2c1450cb7c69f1af6.zip
[PATCH] PCI: pci_find_device remove (alpha/kernel/sys_alcor.c)
Signed-off-by: Jiri Slaby <xslaby@fi.muni.cz> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/alpha/kernel/sys_alcor.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/alpha/kernel/sys_alcor.c b/arch/alpha/kernel/sys_alcor.c
index 145dcde143ae..d7f0e97fe56f 100644
--- a/arch/alpha/kernel/sys_alcor.c
+++ b/arch/alpha/kernel/sys_alcor.c
@@ -254,7 +254,7 @@ alcor_init_pci(void)
* motherboard, by looking for a 21040 TULIP in slot 6, which is
* built into XLT and BRET/MAVERICK, but not available on ALCOR.
*/
- dev = pci_find_device(PCI_VENDOR_ID_DEC,
+ dev = pci_get_device(PCI_VENDOR_ID_DEC,
PCI_DEVICE_ID_DEC_TULIP,
NULL);
if (dev && dev->devfn == PCI_DEVFN(6,0)) {
@@ -262,6 +262,7 @@ alcor_init_pci(void)
printk(KERN_INFO "%s: Detected AS500 or XLT motherboard.\n",
__FUNCTION__);
}
+ pci_dev_put(dev);
}