fs_enet: Update for API changes
authorScott Wood <scottwood@freescale.com>
Wed, 17 Oct 2007 17:42:43 +0000 (12:42 -0500)
committerJeff Garzik <jeff@garzik.org>
Thu, 18 Oct 2007 00:11:28 +0000 (20:11 -0400)
commitf860f49ee2e59d1a665416c9155cad7661ee0552
tree1f154123248bf511d84742578a94567667f68099
parent6880e7cb35bfde5c8ef65cc846e0df54808f982f
fs_enet: Update for API changes

This driver was recently broken by several changes for which this
driver was not (or was improperly) updated:

1. SET_MODULE_OWNER() was removed.
2. netif_napi_add() was only being called when building with
the old CPM binding.
3. The received/budget test was backwards.
4. to_net_dev() was wrong -- the device struct embedded in
the net_device struct is not the same as the of_platform
device in the private struct.
5. napi_disable/napi_enable was being called even when napi
was not being used.

These changes have been fixed, and napi is now on by default.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/fs_enet/fs_enet-main.c
drivers/net/fs_enet/fs_enet.h