summaryrefslogtreecommitdiffstats
path: root/sys/dev/ncv
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2005-09-20 19:54:11 +0000
committerimp <imp@FreeBSD.org>2005-09-20 19:54:11 +0000
commit589e64b00c38e178c11cdd28df417391b2781a46 (patch)
treee3008ea159a142a85de4d3009324d5d112ca4f49 /sys/dev/ncv
parent70a9967120874240894e85033daa206e3a6d8df1 (diff)
downloadFreeBSD-src-589e64b00c38e178c11cdd28df417391b2781a46.zip
FreeBSD-src-589e64b00c38e178c11cdd28df417391b2781a46.tar.gz
Remove OLDCARD support by removing compat shims
Diffstat (limited to 'sys/dev/ncv')
-rw-r--r--sys/dev/ncv/ncr53c500_pccard.c33
1 files changed, 6 insertions, 27 deletions
diff --git a/sys/dev/ncv/ncr53c500_pccard.c b/sys/dev/ncv/ncr53c500_pccard.c
index 6c4533d..72c66ff 100644
--- a/sys/dev/ncv/ncr53c500_pccard.c
+++ b/sys/dev/ncv/ncr53c500_pccard.c
@@ -200,7 +200,8 @@ ncv_alloc_resource(DEVPORT_PDEVICE dev)
return(0);
}
-static int ncv_pccard_match(device_t dev)
+static int
+ncv_pccard_probe(device_t dev)
{
const struct ncv_product *pp;
const char *vendorstr;
@@ -228,7 +229,7 @@ static int ncv_pccard_match(device_t dev)
}
static int
-ncv_pccard_probe(DEVPORT_PDEVICE dev)
+ncv_pccard_attach(device_t dev)
{
struct ncv_softc *sc = device_get_softc(dev);
int error;
@@ -244,23 +245,6 @@ ncv_pccard_probe(DEVPORT_PDEVICE dev)
ncv_release_resource(dev);
return(ENXIO);
}
-
- ncv_release_resource(dev);
-
- return(0);
-}
-
-static int
-ncv_pccard_attach(DEVPORT_PDEVICE dev)
-{
- struct ncv_softc *sc = device_get_softc(dev);
- int error;
-
- error = ncv_alloc_resource(dev);
- if (error) {
- return(error);
- }
-
error = bus_setup_intr(dev, sc->irq_res, INTR_TYPE_CAM | INTR_ENTROPY,
ncv_pccard_intr, (void *)sc, &sc->ncv_intrhand);
if (error) {
@@ -277,7 +261,7 @@ ncv_pccard_attach(DEVPORT_PDEVICE dev)
}
static void
-ncv_pccard_detach(DEVPORT_PDEVICE dev)
+ncv_pccard_detach(device_t dev)
{
ncv_card_unload(dev);
ncv_release_resource(dev);
@@ -285,15 +269,10 @@ ncv_pccard_detach(DEVPORT_PDEVICE dev)
static device_method_t ncv_pccard_methods[] = {
/* Device interface */
- DEVMETHOD(device_probe, pccard_compat_probe),
- DEVMETHOD(device_attach, pccard_compat_attach),
+ DEVMETHOD(device_probe, ncv_pccard_probe),
+ DEVMETHOD(device_attach, ncv_pccard_attach),
DEVMETHOD(device_detach, ncv_pccard_detach),
- /* Card interface */
- DEVMETHOD(card_compat_match, ncv_pccard_match),
- DEVMETHOD(card_compat_probe, ncv_pccard_probe),
- DEVMETHOD(card_compat_attach, ncv_pccard_attach),
-
{ 0, 0 }
};
OpenPOWER on IntegriCloud