aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRandy Dunlap <randy.dunlap@oracle.com>2009-02-11 16:22:56 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2009-04-03 17:53:12 -0400
commitc1f46a001fd878f1be4e08ce1df2d5677e335926 (patch)
treee589828284d8fd51d09f60f7eb40b984fca56413
parent1782199f96eab4ad28c0334f27eb5a52b6c62428 (diff)
Staging: sxg: fix napi interface build
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>
-rw-r--r--drivers/staging/sxg/sxg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/sxg/sxg.c b/drivers/staging/sxg/sxg.c
index 287edb7b86f..5d31e1bd971 100644
--- a/drivers/staging/sxg/sxg.c
+++ b/drivers/staging/sxg/sxg.c
@@ -1268,8 +1268,8 @@ static void sxg_interrupt(struct adapter_t *adapter)
1268{ 1268{
1269 WRITE_REG(adapter->UcodeRegs[0].Icr, SXG_ICR(0, SXG_ICR_MASK), TRUE); 1269 WRITE_REG(adapter->UcodeRegs[0].Icr, SXG_ICR(0, SXG_ICR_MASK), TRUE);
1270 1270
1271 if (netif_rx_schedule_prep(&adapter->napi)) { 1271 if (napi_schedule_prep(&adapter->napi)) {
1272 __netif_rx_schedule(&adapter->napi); 1272 __napi_schedule(&adapter->napi);
1273 } 1273 }
1274} 1274}
1275 1275
@@ -1322,7 +1322,7 @@ static int sxg_poll(struct napi_struct *napi, int budget)
1322 sxg_handle_interrupt(adapter, &work_done, budget); 1322 sxg_handle_interrupt(adapter, &work_done, budget);
1323 1323
1324 if (work_done < budget) { 1324 if (work_done < budget) {
1325 netif_rx_complete(napi); 1325 napi_complete(napi);
1326 WRITE_REG(adapter->UcodeRegs[0].Isr, 0, TRUE); 1326 WRITE_REG(adapter->UcodeRegs[0].Isr, 0, TRUE);
1327 } 1327 }
1328 return work_done; 1328 return work_done;