amd8111e: don't call napi_enable if configured w/o NAPI
authorJiri Bohac <jbohac@suse.cz>
Wed, 21 Nov 2007 12:40:07 +0000 (13:40 +0100)
committerJeff Garzik <jeff@garzik.org>
Sat, 24 Nov 2007 03:09:00 +0000 (22:09 -0500)
commit3defd0ee74b8bec6977a34aae99939af6c007f84
treee9e2ded32ffdcb1e66f370aac7f48944be5acea4
parent77b6901573066d6eadfcf66161a5768f3d2de9e9
amd8111e: don't call napi_enable if configured w/o NAPI

The amd8111e network driver was broken by
bea3348eef27e6044b6161fd04c3152215f96411, which makes the driver
call napi_enable() and napi_disable() even if the driver had been
configured without CONFIG_AMD8111E_NAPI, and thus
netif_napi_add() had not been called on initialization.
This triggers a BUG in napi_enable().

This patch fixes the problem. Please apply.

Signed-off-by: Jiri Bohac <jbohac@suse.cz>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/amd8111e.c