summaryrefslogtreecommitdiffstats
path: root/sys/dev/hea
diff options
context:
space:
mode:
authormdodd <mdodd@FreeBSD.org>2002-06-07 01:55:42 +0000
committermdodd <mdodd@FreeBSD.org>2002-06-07 01:55:42 +0000
commitd148b5fbbdbc1f7658828164ab1793803d3105bb (patch)
tree9d76e163bb0058a08e70dc6744a67099c8ff08b6 /sys/dev/hea
parentecd7ab07f9b036f07250624d60b7ad0d969886cf (diff)
downloadFreeBSD-src-d148b5fbbdbc1f7658828164ab1793803d3105bb.zip
FreeBSD-src-d148b5fbbdbc1f7658828164ab1793803d3105bb.tar.gz
Move some code around.
Minor whitespace changes.
Diffstat (limited to 'sys/dev/hea')
-rw-r--r--sys/dev/hea/hea_freebsd.c8
-rw-r--r--sys/dev/hea/hea_pci.c2
2 files changed, 6 insertions, 4 deletions
diff --git a/sys/dev/hea/hea_freebsd.c b/sys/dev/hea/hea_freebsd.c
index c8b0f83..b723c8c 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 391db8b..d6b5e34 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);
OpenPOWER on IntegriCloud