summaryrefslogtreecommitdiffstats
path: root/sys/dev/pccard
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2005-09-22 14:51:11 +0000
committerimp <imp@FreeBSD.org>2005-09-22 14:51:11 +0000
commit20ca55a59d2d616c50862d07c803d8ffd25363e0 (patch)
treed4bf48f6e9a701194b124e74b78c1fbc7b4f52f0 /sys/dev/pccard
parent5bd0b9e95479564eed0c4eb13c57dd823be8e9d4 (diff)
downloadFreeBSD-src-20ca55a59d2d616c50862d07c803d8ffd25363e0.zip
FreeBSD-src-20ca55a59d2d616c50862d07c803d8ffd25363e0.tar.gz
Remove compat layer for OLDCARD compatibility. All instances of it
are now gone from the tree.
Diffstat (limited to 'sys/dev/pccard')
-rw-r--r--sys/dev/pccard/pccard.c26
-rw-r--r--sys/dev/pccard/pccardvar.h13
2 files changed, 0 insertions, 39 deletions
diff --git a/sys/dev/pccard/pccard.c b/sys/dev/pccard/pccard.c
index ad72769..47a150a 100644
--- a/sys/dev/pccard/pccard.c
+++ b/sys/dev/pccard/pccard.c
@@ -92,8 +92,6 @@ static void pccard_function_init(struct pccard_function *pf);
static void pccard_function_free(struct pccard_function *pf);
static int pccard_function_enable(struct pccard_function *pf);
static void pccard_function_disable(struct pccard_function *pf);
-static int pccard_compat_do_probe(device_t bus, device_t dev);
-static int pccard_compat_do_attach(device_t bus, device_t dev);
static int pccard_probe(device_t dev);
static int pccard_attach(device_t dev);
static int pccard_detach(device_t dev);
@@ -758,28 +756,6 @@ pccard_function_disable(struct pccard_function *pf)
pf->sc->sc_enabled_count--;
}
-/*
- * simulate the old "probe" routine. In the new world order, the driver
- * needs to grab devices while in the old they were assigned to the device by
- * the pccardd process. These symbols are exported to the upper layers.
- */
-static int
-pccard_compat_do_probe(device_t bus, device_t dev)
-{
- return (CARD_COMPAT_MATCH(dev));
-}
-
-static int
-pccard_compat_do_attach(device_t bus, device_t dev)
-{
- int err;
-
- err = CARD_COMPAT_PROBE(dev);
- if (err <= 0)
- err = CARD_COMPAT_ATTACH(dev);
- return (err);
-}
-
#define PCCARD_NPORT 2
#define PCCARD_NMEM 5
#define PCCARD_NIRQ 1
@@ -1428,8 +1404,6 @@ static device_method_t pccard_methods[] = {
DEVMETHOD(card_attach_card, pccard_attach_card),
DEVMETHOD(card_detach_card, pccard_detach_card),
DEVMETHOD(card_do_product_lookup, pccard_do_product_lookup),
- DEVMETHOD(card_compat_do_probe, pccard_compat_do_probe),
- DEVMETHOD(card_compat_do_attach, pccard_compat_do_attach),
DEVMETHOD(card_cis_scan, pccard_scan_cis),
DEVMETHOD(card_attr_read, pccard_attr_read_impl),
DEVMETHOD(card_attr_write, pccard_attr_write_impl),
diff --git a/sys/dev/pccard/pccardvar.h b/sys/dev/pccard/pccardvar.h
index bb29734..bde6b46 100644
--- a/sys/dev/pccard/pccardvar.h
+++ b/sys/dev/pccard/pccardvar.h
@@ -144,19 +144,6 @@ pccard_product_lookup(device_t dev, const struct pccard_product *tab,
(STAILQ_FIRST(&(sc)->card.pf_head) && \
STAILQ_NEXT(STAILQ_FIRST(&(sc)->card.pf_head),pf_list))
-/* compat layer */
-static __inline int
-pccard_compat_probe(device_t dev)
-{
- return (CARD_COMPAT_DO_PROBE(device_get_parent(dev), dev));
-}
-
-static __inline int
-pccard_compat_attach(device_t dev)
-{
- return (CARD_COMPAT_DO_ATTACH(device_get_parent(dev), dev));
-}
-
/* Convenience functions */
static __inline int
OpenPOWER on IntegriCloud