From: Atsushi Nemoto Date: Thu, 2 Apr 2009 08:17:36 +0000 (-0700) Subject: tc35815: Fix build error if NAPI enabled X-Git-Tag: 2.1b_release~13206^2~27 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a2c465db9d5577b601e9b5a4bebc87fdea1ccabe;p=platform%2Fkernel%2Fkernel-mfld-blackbay.git tc35815: Fix build error if NAPI enabled This driver contains experimental NAPI code disabled by default. The commit bea3348ee ("[NET]: Make NAPI polling independent of struct net_device objects.") converted the NAPI path of this driver but that conversion was not complete. This patch fixes a build error introduced by the commit. Signed-off-by: Atsushi Nemoto Signed-off-by: David S. Miller --- diff --git a/drivers/net/tc35815.c b/drivers/net/tc35815.c index b52a1c0..d91e95b 100644 --- a/drivers/net/tc35815.c +++ b/drivers/net/tc35815.c @@ -1908,7 +1908,7 @@ static int tc35815_poll(struct napi_struct *napi, int budget) do { tc_writel(status, &tr->Int_Src); /* write to clear */ - handled = tc35815_do_interrupt(dev, status, limit); + handled = tc35815_do_interrupt(dev, status, budget - received); if (handled >= 0) { received += handled; if (received >= budget)