mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] idt77252.c: add missing pci_enable_device()
@ 2004-08-03 19:50 Bjorn Helgaas
  2004-08-03 19:57 ` Francois Romieu
  0 siblings, 1 reply; 3+ messages in thread
From: Bjorn Helgaas @ 2004-08-03 19:50 UTC (permalink / raw)
  To: Andrew Morton; +Cc: ecd, chas, linux-atm-general, linux-kernel

Add pci_enable_device().  In the past, drivers often worked without
this, but it is now required in order to route PCI interrupts correctly.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>

===== drivers/atm/idt77252.c 1.24 vs edited =====
--- 1.24/drivers/atm/idt77252.c	2004-07-12 02:01:05 -06:00
+++ edited/drivers/atm/idt77252.c	2004-07-30 13:45:42 -06:00
@@ -3684,6 +3684,11 @@
 	int i;
 
 
+	if (pci_enable_device(pcidev)) {
+		printk("idt77252: can't enable PCI device at %s\n", pci_name(pcidev));
+		return -ENODEV;
+	}
+
 	if (pci_read_config_word(pcidev, PCI_REVISION_ID, &revision)) {
 		printk("idt77252-%d: can't read PCI_REVISION_ID\n", index);
 		return -ENODEV;

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-08-04 16:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-03 19:50 [PATCH] idt77252.c: add missing pci_enable_device() Bjorn Helgaas
2004-08-03 19:57 ` Francois Romieu
2004-08-04 16:23   ` Bjorn Helgaas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®