From 59578ee028c103d9901ce3f2fb9670c28b3b544b Mon Sep 17 00:00:00 2001 From: Sergey Kandaurov Date: Wed, 2 Jul 2014 21:08:25 +0000 Subject: [PATCH] Fixed build with DEVICE_POLLING. --- sys/dev/bge/if_bge.c | 4 ++-- sys/dev/nfe/if_nfe.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/dev/bge/if_bge.c b/sys/dev/bge/if_bge.c index dc528349abbd..69c8ba8c5b1e 100644 --- a/sys/dev/bge/if_bge.c +++ b/sys/dev/bge/if_bge.c @@ -4796,7 +4796,7 @@ bge_tick(void *xsc) */ #ifdef DEVICE_POLLING /* In polling mode we poll link state in bge_poll(). */ - if (!(sc->bge_if_getcapenable(ifp) & IFCAP_POLLING)) + if (!(if_getcapenable(sc->bge_ifp) & IFCAP_POLLING)) #endif { sc->bge_link_evt++; @@ -5830,7 +5830,7 @@ bge_ioctl(if_t ifp, u_long command, caddr_t data) #ifdef DEVICE_POLLING if (mask & IFCAP_POLLING) { if (ifr->ifr_reqcap & IFCAP_POLLING) { - error = ether_poll_register(bge_poll, ifp); + error = ether_poll_register_drv(bge_poll, ifp); if (error) return (error); BGE_LOCK(sc); diff --git a/sys/dev/nfe/if_nfe.c b/sys/dev/nfe/if_nfe.c index 9401e1aff464..58a0e1d7beda 100644 --- a/sys/dev/nfe/if_nfe.c +++ b/sys/dev/nfe/if_nfe.c @@ -1630,7 +1630,7 @@ nfe_free_tx_ring(struct nfe_softc *sc, struct nfe_tx_ring *ring) } #ifdef DEVICE_POLLING -static poll_handler_t nfe_poll; +static poll_handler_drv_t nfe_poll; static int @@ -1782,7 +1782,7 @@ nfe_ioctl(if_t ifp, u_long cmd, caddr_t data) #ifdef DEVICE_POLLING if ((mask & IFCAP_POLLING) != 0) { if ((ifr->ifr_reqcap & IFCAP_POLLING) != 0) { - error = ether_poll_register(nfe_poll, ifp); + error = ether_poll_register_drv(nfe_poll, ifp); if (error) break; NFE_LOCK(sc);