Skip to content

Commit

Permalink
Staging: sxg: fix napi interface build
Browse files Browse the repository at this point in the history
Fix staging/sxg napi interface calls:

drivers/staging/sxg/sxg.c:1271: error: implicit declaration of function 'netif_rx_schedule_prep'
linux-next-20090209/drivers/staging/sxg/sxg.c:1272: error: implicit declaration of function '__netif_rx_schedule'
drivers/staging/sxg/sxg.c:1325: error: implicit declaration of function 'netif_rx_complete'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Mithlesh Thukral <mithlesh@linsyssoft.com>
Cc: LinSysSoft Sahara Team <saharaproj@linsyssoft.com>
Cc: Christopher Harrer <charrer@alacritech.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Randy Dunlap authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent 1782199 commit c1f46a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/staging/sxg/sxg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1268,8 +1268,8 @@ static void sxg_interrupt(struct adapter_t *adapter)
{
WRITE_REG(adapter->UcodeRegs[0].Icr, SXG_ICR(0, SXG_ICR_MASK), TRUE);

if (netif_rx_schedule_prep(&adapter->napi)) {
__netif_rx_schedule(&adapter->napi);
if (napi_schedule_prep(&adapter->napi)) {
__napi_schedule(&adapter->napi);
}
}

Expand Down Expand Up @@ -1322,7 +1322,7 @@ static int sxg_poll(struct napi_struct *napi, int budget)
sxg_handle_interrupt(adapter, &work_done, budget);

if (work_done < budget) {
netif_rx_complete(napi);
napi_complete(napi);
WRITE_REG(adapter->UcodeRegs[0].Isr, 0, TRUE);
}
return work_done;
Expand Down

0 comments on commit c1f46a0

Please sign in to comment.