aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/skfp
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2007-08-02 16:31:25 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:50:21 -0400
commita967b14035c5efe4c92623dde3776ffc7a79118c (patch)
tree4752fa618adf42824ed49f88e4a973c27b84cdc8 /drivers/net/skfp
parentbbfb86c5776ff481d246fcd5d8deb67701e05c00 (diff)
drivers/net/skfp: Remove dead code referencing pci_find_device()
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/skfp')
-rw-r--r--drivers/net/skfp/drvfbi.c40
-rw-r--r--drivers/net/skfp/h/skfbi.h5
2 files changed, 0 insertions, 45 deletions
diff --git a/drivers/net/skfp/drvfbi.c b/drivers/net/skfp/drvfbi.c
index be2ee6519ef2..c77cc14b3227 100644
--- a/drivers/net/skfp/drvfbi.c
+++ b/drivers/net/skfp/drvfbi.c
@@ -537,46 +537,6 @@ int set_oi_id_def(struct s_smc *smc)
537} 537}
538#endif /* MULT_OEM */ 538#endif /* MULT_OEM */
539 539
540#ifdef PCI
541#ifdef USE_BIOS_FUN
542int exist_board(struct s_smc *smc, int slot)
543{
544 u_short dev_id ;
545 u_short ven_id ;
546 int found ;
547 int i ;
548
549 found = FALSE ; /* make sure we returned with adatper not found*/
550 /* if an empty oemids.h was included */
551
552#ifdef MULT_OEM
553 smc->hw.oem_id = (struct s_oem_ids *) &oem_ids[0] ;
554 for (; smc->hw.oem_id->oi_status != OI_STAT_LAST; smc->hw.oem_id++) {
555 if (smc->hw.oem_id->oi_status < smc->hw.oem_min_status)
556 continue ;
557#endif
558 ven_id = OEMID(smc,0) + (OEMID(smc,1) << 8) ;
559 dev_id = OEMID(smc,2) + (OEMID(smc,3) << 8) ;
560 for (i = 0; i < slot; i++) {
561 if (pci_find_device(i,&smc->hw.pci_handle,
562 dev_id,ven_id) != 0) {
563
564 found = FALSE ;
565 } else {
566 found = TRUE ;
567 }
568 }
569 if (found) {
570 return(1) ; /* adapter was found */
571 }
572#ifdef MULT_OEM
573 }
574#endif
575 return(0) ; /* adapter was not found */
576}
577#endif /* PCI */
578#endif /* USE_BIOS_FUNC */
579
580void driver_get_bia(struct s_smc *smc, struct fddi_addr *bia_addr) 540void driver_get_bia(struct s_smc *smc, struct fddi_addr *bia_addr)
581{ 541{
582 int i ; 542 int i ;
diff --git a/drivers/net/skfp/h/skfbi.h b/drivers/net/skfp/h/skfbi.h
index d25c9f849842..c1ba26c06d73 100644
--- a/drivers/net/skfp/h/skfbi.h
+++ b/drivers/net/skfp/h/skfbi.h
@@ -15,11 +15,6 @@
15#ifndef _SKFBI_H_ 15#ifndef _SKFBI_H_
16#define _SKFBI_H_ 16#define _SKFBI_H_
17 17
18#ifdef SYNC
19#define exist_board_far exist_board
20#define get_board_para_far get_board_para
21#endif
22
23/* 18/*
24 * FDDI-Fx (x := {I(SA), P(CI)}) 19 * FDDI-Fx (x := {I(SA), P(CI)})
25 * address calculation & function defines 20 * address calculation & function defines