diff options
author | Atsushi Nemoto <anemo@mba.ocn.ne.jp> | 2009-04-02 04:17:36 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-04-02 04:17:36 -0400 |
commit | a2c465db9d5577b601e9b5a4bebc87fdea1ccabe (patch) | |
tree | 0d0af75ee28f64f5093b6cc0f9d13bdba00e0bf4 | |
parent | 9961d84270ce1d5f4c662382acf0b418a3ff6a0f (diff) |
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 <anemo@mba.ocn.ne.jp>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/tc35815.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/tc35815.c b/drivers/net/tc35815.c index b52a1c088f3..d91e95b237b 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) | |||
1908 | do { | 1908 | do { |
1909 | tc_writel(status, &tr->Int_Src); /* write to clear */ | 1909 | tc_writel(status, &tr->Int_Src); /* write to clear */ |
1910 | 1910 | ||
1911 | handled = tc35815_do_interrupt(dev, status, limit); | 1911 | handled = tc35815_do_interrupt(dev, status, budget - received); |
1912 | if (handled >= 0) { | 1912 | if (handled >= 0) { |
1913 | received += handled; | 1913 | received += handled; |
1914 | if (received >= budget) | 1914 | if (received >= budget) |