From 2e31e339d14cb2dbcd32c3747ee7589160cd60cf Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Thu, 27 May 2004 03:49:45 +0000 Subject: Fix disordering of pccarddevs.h noticed by bde. Also remove a few redundant includes and fix some of the include disordering. Submitted by: bde --- sys/dev/wi/if_wi_pccard.c | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) (limited to 'sys/dev/wi') diff --git a/sys/dev/wi/if_wi_pccard.c b/sys/dev/wi/if_wi_pccard.c index 941e76a978a02..e1f70be01d60a 100644 --- a/sys/dev/wi/if_wi_pccard.c +++ b/sys/dev/wi/if_wi_pccard.c @@ -65,9 +65,6 @@ __FBSDID("$FreeBSD$"); #include #include -#if __FreeBSD_version >= 500000 -#include "pccarddevs.h" -#endif #include #include @@ -77,22 +74,11 @@ __FBSDID("$FreeBSD$"); #endif #include "card_if.h" +#include "pccarddevs.h" static int wi_pccard_probe(device_t); static int wi_pccard_attach(device_t); -#if __FreeBSD_version < 500000 -static device_method_t wi_pccard_methods[] = { - /* Device interface */ - DEVMETHOD(device_probe, wi_pccard_probe), - DEVMETHOD(device_attach, wi_pccard_attach), - DEVMETHOD(device_detach, wi_detach), - DEVMETHOD(device_shutdown, wi_shutdown), - - { 0, 0 } -}; - -#else static int wi_pccard_match(device_t); static device_method_t wi_pccard_methods[] = { @@ -110,8 +96,6 @@ static device_method_t wi_pccard_methods[] = { { 0, 0 } }; -#endif - static driver_t wi_pccard_driver = { "wi", wi_pccard_methods, @@ -121,7 +105,6 @@ static driver_t wi_pccard_driver = { DRIVER_MODULE(wi, pccard, wi_pccard_driver, wi_devclass, 0, 0); MODULE_DEPEND(wi, wlan, 1, 1, 1); -#if __FreeBSD_version >= 500000 static const struct pccard_product wi_pccard_products[] = { PCMCIA_CARD(3COM, 3CRWE737A, 0), PCMCIA_CARD(3COM, 3CRWE777A, 0), @@ -188,7 +171,6 @@ wi_pccard_match(dev) } return (ENXIO); } -#endif static int wi_pccard_probe(dev) @@ -231,7 +213,6 @@ wi_pccard_attach(device_t dev) return (error); } -#if __FreeBSD_version > 500000 /* * The cute little Symbol LA4100-series CF cards need to have * code downloaded to them. @@ -253,7 +234,6 @@ wi_pccard_attach(device_t dev) return (ENXIO); #endif } -#endif retval = wi_attach(dev); if (retval != 0) wi_free(dev); -- cgit v1.3