patch-2.4.0-test10 linux/drivers/net/3c501.c

Next file: linux/drivers/net/3c503.c
Previous file: linux/drivers/media/video/tea6300.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test9/linux/drivers/net/3c501.c linux/drivers/net/3c501.c
@@ -218,10 +218,6 @@
  *	The boilerplate probe code.
  */
 
-#ifdef HAVE_DEVLIST
-struct netdev_entry el1_drv = {"3c501", el1_probe1, EL1_IO_EXTENT, netcard_portlist};
-#else
-
 /**
  * el1_probe:
  * @dev: The device structure passed in to probe. 
@@ -246,17 +242,11 @@
 		return -ENXIO;
 
 	for (i = 0; netcard_portlist[i]; i++)
-	{
-		int ioaddr = netcard_portlist[i];
-		if (check_region(ioaddr, EL1_IO_EXTENT))
-			continue;
-		if (el1_probe1(dev, ioaddr) == 0)
+		if (el1_probe1(dev, netcard_portlist[i]) == 0)
 			return 0;
-	}
 
 	return -ENODEV;
 }
-#endif
 
 /**
  *	el1_probe: 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)