lkml.org 
[lkml]   [2003]   [Jun]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
SubjectRe: [PATCH] Yet more PCI fixes for 2.5.70
From
Date
ChangeSet 1.1345, 2003/06/09 15:52:51-07:00, greg@kroah.com

PCI: remove pci_present() from drivers/net/wan/lmc/lmc_main.c


drivers/net/wan/lmc/lmc_main.c | 8 --------
drivers/net/wan/lmc/lmc_ver.h | 2 --
2 files changed, 10 deletions(-)


diff -Nru a/drivers/net/wan/lmc/lmc_main.c b/drivers/net/wan/lmc/lmc_main.c
--- a/drivers/net/wan/lmc/lmc_main.c Tue Jun 10 11:20:20 2003
+++ b/drivers/net/wan/lmc/lmc_main.c Tue Jun 10 11:20:20 2003
@@ -1034,14 +1034,6 @@
u8 intcf = 0;
struct pci_dev *pdev = NULL;

- /* The card is only available on PCI, so if we don't have a
- * PCI bus, we are in trouble.
- */
-
- if (!pci_present()) {
-/* printk ("%s: We really want a pci bios!\n", dev->name);*/
- return -1;
- }
/* Loop basically until we don't find anymore. */
while ((pdev = pci_find_class (PCI_CLASS_NETWORK_ETHERNET << 8, pdev))) {
if (pci_enable_device(pdev))
diff -Nru a/drivers/net/wan/lmc/lmc_ver.h b/drivers/net/wan/lmc/lmc_ver.h
--- a/drivers/net/wan/lmc/lmc_ver.h Tue Jun 10 11:20:20 2003
+++ b/drivers/net/wan/lmc/lmc_ver.h Tue Jun 10 11:20:20 2003
@@ -69,12 +69,10 @@
#if LINUX_VERSION_CODE < 0x20155 /* basically 2.2 plus */

#define LMC_DEV_KFREE_SKB(skb) dev_kfree_skb((skb), FREE_WRITE)
-#define LMC_PCI_PRESENT() pcibios_present()

#else /* Mostly 2.0 kernels */

#define LMC_DEV_KFREE_SKB(skb) dev_kfree_skb(skb)
-#define LMC_PCI_PRESENT() pci_present()

#endif

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

\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.068 / U:0.872 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site