]> git.baikalelectronics.ru Git - kernel.git/commit
enc28j60: Switch to use module_spi_driver() macro
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 19 Mar 2019 18:49:22 +0000 (20:49 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Mar 2019 21:59:31 +0000 (14:59 -0700)
commitd3a11714936f736afe9224e37a64256486b3cad3
tree2eeac8ec0f2bcdfcc5a1da0af26b363854938785
parente54b53efa57b7b18fe92916c8a8262a3ced0fb72
enc28j60: Switch to use module_spi_driver() macro

Eliminate some boilerplate code by using module_spi_driver() instead of
->init() / ->exit(), moving the salient bits from ->init() into ->probe().

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/microchip/enc28j60.c