From 42823f622b07025ec75e67a1dc38e520d796b296 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman <greg@kroah.com> Date: Tue, 28 Sep 2004 21:01:14 -0700 Subject: [PATCH] I2C: change i2c-elektor.c driver from using pci_find_device() Signed-off-by: Greg Kroah-Hartman <greg@kroah.com> --- drivers/i2c/busses/i2c-elektor.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/i2c/busses/i2c-elektor.c b/drivers/i2c/busses/i2c-elektor.c index f6bd38b060eb..b6cfb82073e1 100644 --- a/drivers/i2c/busses/i2c-elektor.c +++ b/drivers/i2c/busses/i2c-elektor.c @@ -180,11 +180,10 @@ static int __init i2c_pcfisa_init(void) /* check to see we have memory mapped PCF8584 connected to the Cypress cy82c693 PCI-ISA bridge as on UP2000 board */ if (base == 0) { + struct pci_dev *cy693_dev; - struct pci_dev *cy693_dev = - pci_find_device(PCI_VENDOR_ID_CONTAQ, - PCI_DEVICE_ID_CONTAQ_82C693, NULL); - + cy693_dev = pci_get_device(PCI_VENDOR_ID_CONTAQ, + PCI_DEVICE_ID_CONTAQ_82C693, NULL); if (cy693_dev) { char config; /* yeap, we've found cypress, let's check config */ @@ -215,6 +214,7 @@ static int __init i2c_pcfisa_init(void) printk(KERN_INFO "i2c-elektor: found API UP2000 like board, will probe PCF8584 later.\n"); } } + pci_dev_put(cy693_dev); } } #endif -- 2.30.9