drivers/net/skfp: Remove dead code referencing pci_find_device()
authorJeff Garzik <jeff@garzik.org>
Thu, 2 Aug 2007 20:31:25 +0000 (16:31 -0400)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:50:21 +0000 (16:50 -0700)
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/skfp/drvfbi.c
drivers/net/skfp/h/skfbi.h

index be2ee6519ef24fcb7912c18aef6aeddeb1397a2c..c77cc14b322714937b3d39185fa32bc1dbb3c0e6 100644 (file)
@@ -537,46 +537,6 @@ int set_oi_id_def(struct s_smc *smc)
 }
 #endif /* MULT_OEM */
 
-#ifdef PCI
-#ifdef USE_BIOS_FUN
-int exist_board(struct s_smc *smc, int slot)
-{
-       u_short dev_id ;
-       u_short ven_id ;
-       int found ; 
-       int i ;
-
-       found = FALSE ;         /* make sure we returned with adatper not found*/
-                               /* if an empty oemids.h was included */
-
-#ifdef MULT_OEM
-        smc->hw.oem_id = (struct s_oem_ids *) &oem_ids[0] ;
-       for (; smc->hw.oem_id->oi_status != OI_STAT_LAST; smc->hw.oem_id++) {
-               if (smc->hw.oem_id->oi_status < smc->hw.oem_min_status)
-                       continue ;
-#endif
-               ven_id = OEMID(smc,0) + (OEMID(smc,1) << 8) ; 
-               dev_id = OEMID(smc,2) + (OEMID(smc,3) << 8) ; 
-               for (i = 0; i < slot; i++) {
-                       if (pci_find_device(i,&smc->hw.pci_handle,
-                               dev_id,ven_id) != 0) {
-
-                               found = FALSE ;
-                       } else {
-                               found = TRUE ;
-                       }
-               }
-               if (found) {
-                       return(1) ;     /* adapter was found */
-               }
-#ifdef MULT_OEM
-       }
-#endif
-       return(0) ;     /* adapter was not found */
-}
-#endif /* PCI */
-#endif /* USE_BIOS_FUNC */
-
 void driver_get_bia(struct s_smc *smc, struct fddi_addr *bia_addr)
 {
        int i ;
index d25c9f8498425c28e3d301c9a9fa725fcee13c92..c1ba26c06d731252771dfe7f2273b724bc675068 100644 (file)
 #ifndef        _SKFBI_H_
 #define        _SKFBI_H_
 
-#ifdef SYNC
-#define exist_board_far                        exist_board
-#define get_board_para_far             get_board_para
-#endif
-
 /*
  * FDDI-Fx (x := {I(SA), P(CI)})
  *     address calculation & function defines