- Fix the busname in the DRIVER_MODULE.

- Skip PnP devices as some wedge when trying to probe them as C-NET(98)S.

This fix makes le(4) actually work with the C-NET(98)S.

Reviewed by:	marius
Tested by:	Watanabe Kazuhiro < CQG00620 at nifty dot ne dot jp >
This commit is contained in:
Yoshihiro Takahashi 2006-05-22 13:43:36 +00:00
parent e6cb03f155
commit 097f448416
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=158829

View File

@ -104,7 +104,7 @@ static device_method_t le_cbus_methods[] = {
};
DEFINE_CLASS_0(le, le_cbus_driver, le_cbus_methods, sizeof(struct le_cbus_softc));
DRIVER_MODULE(le, cbus, le_cbus_driver, le_devclass, 0, 0);
DRIVER_MODULE(le, isa, le_cbus_driver, le_devclass, 0, 0);
MODULE_DEPEND(le, ether, 1, 1, 1);
static bus_addr_t le_ioaddr_cnet98s[CNET98S_IOSIZE] = {
@ -217,6 +217,13 @@ le_cbus_probe(device_t dev)
struct lance_softc *sc;
int error;
/*
* Skip PnP devices as some wedge when trying to probe them as
* C-NET(98)S.
*/
if (isa_get_vendorid(dev))
return (ENXIO);
lesc = device_get_softc(dev);
sc = &lesc->sc_am7990.lsc;