Re: [PATCH] I2C update for 2.6.9

From: Greg KH
Date: Tue Oct 19 2004 - 22:52:00 EST


ChangeSet 1.1939.9.3, 2004/09/29 11:01:14-07:00, greg@xxxxxxxxx

I2C: change i2c-elektor.c driver from using pci_find_device()

Signed-off-by: Greg Kroah-Hartman <greg@xxxxxxxxx>


drivers/i2c/busses/i2c-elektor.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)


diff -Nru a/drivers/i2c/busses/i2c-elektor.c b/drivers/i2c/busses/i2c-elektor.c
--- a/drivers/i2c/busses/i2c-elektor.c 2004-10-19 16:54:45 -07:00
+++ b/drivers/i2c/busses/i2c-elektor.c 2004-10-19 16:54:45 -07:00
@@ -180,11 +180,10 @@
/* 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 @@
printk(KERN_INFO "i2c-elektor: found API UP2000 like board, will probe PCF8584 later.\n");
}
}
+ pci_dev_put(cy693_dev);
}
}
#endif

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/