]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
r6040: use module_pci_driver macro
authorDevendra Naga <devendra.aaru@gmail.com>
Sun, 8 Jul 2012 05:57:57 +0000 (05:57 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Jul 2012 21:42:30 +0000 (14:42 -0700)
commit36efc94b1d09e75fc18b400b0fba8220f967fb44
treee96a3c73cb6bd0f6457fcf334bddb61804b44a32
parenta334b5fb19d3f17953f73bb6de516a29317fb7f7
r6040: use module_pci_driver macro

as the manual of module_pci_driver says that
it can be used when the init and exit functions of
the module does nothing but the pci_register_driver
and pci_unregister_driver.

use it for rdc's r6040 driver, as the init and exit
paths does as above, and also this reduces a little
amount of code.

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Acked-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/rdc/r6040.c