]> git.baikalelectronics.ru Git - kernel.git/commit
ethernet: realtek: use module_pci_driver
authorVarka Bhadram <varkab@cdac.in>
Wed, 23 Jul 2014 03:49:48 +0000 (09:19 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Jul 2014 21:56:40 +0000 (14:56 -0700)
commit0f4111a2cef5e8f6a36b4b4d7ca0ae2155a23241
treed3b046ea10ddc24e358bebd21daeee46f6ddcfac
parentef1357a3b93a7461333980bf3bf0702483337b72
ethernet: realtek: use module_pci_driver

This patch converts to use the macro module_pci_driver, which makes
the code smaller and simpler.

Previously in this driver we are having driver version info will be
printed log buffer based on whether the driver selected as module
or statically into image itself. By using the module_pci_driver that
part of the code removed. For the first time of the device init,
we are making the version info to be printed once.

Signed-off-by: Varka Bhadram <varkab@cdac.in>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/8139cp.c