[PATCH v2 05/13] enc28j60: Switch to use module_spi_driver() macro

2019-03-19 Thread Andy Shevchenko
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 --- drivers/net/ethernet/microchip/enc28j60.c | 21 ++--- 1 file changed, 2 insertions(+), 19 deletion

[PATCH v2 05/13] enc28j60: Switch to use module_spi_driver() macro

2019-03-18 Thread Andy Shevchenko
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 --- drivers/net/ethernet/microchip/enc28j60.c | 21 ++--- 1 file changed, 2 insertions(+), 19 deletion