diff options
| author | Matthew N. Dodd <mdodd@FreeBSD.org> | 2002-06-07 01:55:42 +0000 |
|---|---|---|
| committer | Matthew N. Dodd <mdodd@FreeBSD.org> | 2002-06-07 01:55:42 +0000 |
| commit | 33b04e2fcbaeaede7c0cdca697ded804cbf30e1c (patch) | |
| tree | 9d76e163bb0058a08e70dc6744a67099c8ff08b6 /sys/dev/hea | |
| parent | e8e649cc5dd773fdde330d58c17c9f03e2f28286 (diff) | |
Notes
Diffstat (limited to 'sys/dev/hea')
| -rw-r--r-- | sys/dev/hea/hea_freebsd.c | 8 | ||||
| -rw-r--r-- | sys/dev/hea/hea_pci.c | 2 |
2 files changed, 6 insertions, 4 deletions
diff --git a/sys/dev/hea/hea_freebsd.c b/sys/dev/hea/hea_freebsd.c index c8b0f833bf88..b723c8cb783a 100644 --- a/sys/dev/hea/hea_freebsd.c +++ b/sys/dev/hea/hea_freebsd.c @@ -163,14 +163,15 @@ hea_attach (device_t dev) */ eup->eu_unit = device_get_unit(dev); eup->eu_mtu = ENI_IFF_MTU; - eup->eu_pcitag = dev; + eup->eu_vcc_pool = &eni_vcc_pool; + eup->eu_nif_pool = &eni_nif_pool; eup->eu_ioctl = eni_atm_ioctl; eup->eu_instvcc = eni_instvcc; eup->eu_openvcc = eni_openvcc; eup->eu_closevcc = eni_closevcc; eup->eu_output = eni_output; - eup->eu_vcc_pool = &eni_vcc_pool; - eup->eu_nif_pool = &eni_nif_pool; + + eup->eu_pcitag = dev; /* * Map memory structures into adapter space @@ -206,6 +207,7 @@ hea_attach (device_t dev) * Read the contents of the SEEPROM */ eni_read_seeprom(eup); + /* * Copy MAC address to PIF and config structures */ diff --git a/sys/dev/hea/hea_pci.c b/sys/dev/hea/hea_pci.c index 391db8b1167f..d6b5e340c324 100644 --- a/sys/dev/hea/hea_pci.c +++ b/sys/dev/hea/hea_pci.c @@ -198,8 +198,8 @@ hea_pci_attach (dev) } return (0); -fail: +fail: hea_detach(dev); return (error); |
