* [PATCH] trivial patch for fixme in ide-pci.c
@ 2002-05-03 4:42 Gerald Champagne
0 siblings, 0 replies; only message in thread
From: Gerald Champagne @ 2002-05-03 4:42 UTC (permalink / raw)
To: linux-kernel; +Cc: dalecki
[-- Attachment #1: Type: text/plain, Size: 139 bytes --]
The following cleanup patch gets rid of a FIXME in ide-pci.c. It
compiles, but it's untested since I don't have that hardware.
Gerald
[-- Attachment #2: hpt366fixme.patch --]
[-- Type: text/x-patch, Size: 1792 bytes --]
diff -urN linux-2.5.13.orig/drivers/ide/hpt366.c linux-2.5.13/drivers/ide/hpt366.c
--- linux-2.5.13.orig/drivers/ide/hpt366.c Thu May 2 19:22:42 2002
+++ linux-2.5.13/drivers/ide/hpt366.c Thu May 2 21:29:32 2002
@@ -346,8 +346,6 @@
static unsigned int pci_rev_check_hpt3xx(struct pci_dev *dev);
static unsigned int pci_rev2_check_hpt3xx(struct pci_dev *dev);
byte hpt366_proc = 0;
-byte hpt363_shared_irq;
-byte hpt363_shared_pin;
extern char *ide_xfer_verbose (byte xfer_rate);
#if defined(DISPLAY_HPT366_TIMINGS) && defined(CONFIG_PROC_FS)
diff -urN linux-2.5.13.orig/drivers/ide/ide-pci.c linux-2.5.13/drivers/ide/ide-pci.c
--- linux-2.5.13.orig/drivers/ide/ide-pci.c Thu May 2 19:22:56 2002
+++ linux-2.5.13/drivers/ide/ide-pci.c Thu May 2 21:53:01 2002
@@ -81,17 +81,10 @@
#endif
#ifdef CONFIG_BLK_DEV_HPT366
-extern byte hpt363_shared_irq;
-extern byte hpt363_shared_pin;
-
extern unsigned int pci_init_hpt366(struct pci_dev *);
extern unsigned int ata66_hpt366(struct ata_channel *);
extern void ide_init_hpt366(struct ata_channel *);
extern void ide_dmacapable_hpt366(struct ata_channel *, unsigned long);
-#else
-/* FIXME: those have to be killed */
-static byte hpt363_shared_irq;
-static byte hpt363_shared_pin;
#endif
#ifdef CONFIG_BLK_DEV_NS87415
@@ -843,9 +836,7 @@
(PCI_FUNC(findev->devfn) & 1)) {
dev2 = findev;
pci_read_config_byte(dev2, PCI_INTERRUPT_PIN, &pin2);
- hpt363_shared_pin = (pin1 != pin2) ? 1 : 0;
- hpt363_shared_irq = (dev->irq == dev2->irq) ? 1 : 0;
- if (hpt363_shared_pin && hpt363_shared_irq) {
+ if (pin1 != pin2 && dev->irq == dev2->irq) {
d->bootable = ON_BOARD;
printk("%s: onboard version of chipset, pin1=%d pin2=%d\n", dev->name, pin1, pin2);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-05-03 4:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-03 4:42 [PATCH] trivial patch for fixme in ide-pci.c Gerald Champagne
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox