diff options
author | imp <imp@FreeBSD.org> | 2005-02-14 07:00:39 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2005-02-14 07:00:39 +0000 |
commit | c4c5777dd098d4c971f3949a36871c654449d77d (patch) | |
tree | 7ce64150acacebb116051083a0837934a9439604 /sys/pccard | |
parent | 72c4151f9cfdb971fd5ff6f6e33330d1085c6da1 (diff) | |
download | FreeBSD-src-c4c5777dd098d4c971f3949a36871c654449d77d.zip FreeBSD-src-c4c5777dd098d4c971f3949a36871c654449d77d.tar.gz |
Remove card_get_function. It looks like it was intended to be a
bridge between OLDCARD and NEWCARD for drivers to inquire after the
function number (eg, 0, 1, 2). Nobody ever used it, so retire it
with honors. NEWCARD never implemented it, and the same information
can be obtained by the pccard_get_function_number().
MFC After: 3 days
Diffstat (limited to 'sys/pccard')
-rw-r--r-- | sys/pccard/pccard_nbk.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/sys/pccard/pccard_nbk.c b/sys/pccard/pccard_nbk.c index f5c97a8..99b2122 100644 --- a/sys/pccard/pccard_nbk.c +++ b/sys/pccard/pccard_nbk.c @@ -382,13 +382,6 @@ pccard_get_memory_offset(device_t bus, device_t child, int rid, #if __FreeBSD_version >= 500000 static int -pccard_get_function_num(device_t bus, device_t child, int *function) -{ - *function = 0; - return (0); -} - -static int pccard_activate_function(device_t bus, device_t child) { /* pccardd has alrady activated the function */ @@ -439,7 +432,6 @@ static device_method_t pccard_methods[] = { DEVMETHOD(card_set_memory_offset, pccard_set_memory_offset), DEVMETHOD(card_get_memory_offset, pccard_get_memory_offset), #if __FreeBSD_version >= 500000 - DEVMETHOD(card_get_function, pccard_get_function_num), DEVMETHOD(card_activate_function, pccard_activate_function), DEVMETHOD(card_deactivate_function, pccard_deactivate_function), DEVMETHOD(card_compat_do_probe, pccard_compat_do_probe), |