diff --git a/sys/dev/pccard/card_if.m b/sys/dev/pccard/card_if.m index d5f34122ace0..71c07d9e1cbf 100644 --- a/sys/dev/pccard/card_if.m +++ b/sys/dev/pccard/card_if.m @@ -93,15 +93,6 @@ METHOD int detach_card { device_t dev; } -# -# Returns the function number for this device. -# -METHOD int get_function { - device_t dev; - device_t child; - int *func; -} - # # Activates (and powers up if necessary) the card's nth function # since each function gets its own device, there is no need to diff --git a/sys/pccard/pccard_nbk.c b/sys/pccard/pccard_nbk.c index f5c97a8bc446..99b21226b116 100644 --- a/sys/pccard/pccard_nbk.c +++ b/sys/pccard/pccard_nbk.c @@ -381,13 +381,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) { @@ -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),