net/ethernet/nvidia/forcedeth: Use module_pci_driver to register driver
authorPeter Hüwe <PeterHuewe@gmx.de>
Tue, 21 May 2013 13:42:56 +0000 (13:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 May 2013 21:35:05 +0000 (14:35 -0700)
commit4f45c40f2c018e5c278988521a74fd5ee06fb819
tree8d3c14159199f26d705fa5c29c5df96ab5f2d8ae
parent65c21912b5b977f32a12336e87fe32f36105b981
net/ethernet/nvidia/forcedeth: Use module_pci_driver to register driver

Removing some boilerplate by using module_pci_driver instead of calling
register and unregister in the otherwise empty init/exit functions.

The name of the pci_driver struct had to be changed in order to prevent
a build failure.

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/nvidia/forcedeth.c