summaryrefslogtreecommitdiffstats
path: root/sys/dev/ed/if_ed.c
diff options
context:
space:
mode:
authorps <ps@FreeBSD.org>2000-09-12 11:03:12 +0000
committerps <ps@FreeBSD.org>2000-09-12 11:03:12 +0000
commit5f7726f4e7a3400d200c0152122d30f3dd541166 (patch)
tree7ca5d7befadc5e59c5ceb785e07bc687b14c4194 /sys/dev/ed/if_ed.c
parenta7bc78c86d1b25efbea8d9ad3e7354ef3a302e90 (diff)
downloadFreeBSD-src-5f7726f4e7a3400d200c0152122d30f3dd541166.zip
FreeBSD-src-5f7726f4e7a3400d200c0152122d30f3dd541166.tar.gz
Move the detection of Linksys PCMCIA cards from attach to probe.
This should solve the problems people were seeing with this driver. Reported by: phk & others.
Diffstat (limited to 'sys/dev/ed/if_ed.c')
-rw-r--r--sys/dev/ed/if_ed.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ed/if_ed.c b/sys/dev/ed/if_ed.c
index 4bff9f5..0c67a94 100644
--- a/sys/dev/ed/if_ed.c
+++ b/sys/dev/ed/if_ed.c
@@ -912,9 +912,10 @@ ed_probe_3Com(dev, port_rid, flags)
* conditionally.
*/
int
-ed_get_Linksys(sc)
- struct ed_softc *sc;
+ed_get_Linksys(dev)
+ device_t dev;
{
+ struct ed_softc *sc = device_get_softc(dev);
u_char sum;
int i;
OpenPOWER on IntegriCloud