]> git.baikalelectronics.ru Git - kernel.git/commit
net-next: stmmac: add optional setup function
authorLABBE Corentin <clabbe.montjoie@gmail.com>
Wed, 31 May 2017 07:18:33 +0000 (09:18 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Jun 2017 18:53:03 +0000 (14:53 -0400)
commit2ccbb7056ecb0d60beac16129c20a187efa679ce
tree4b4f40d2f9482a25a1ebc4e9e40dc79012cbddd6
parent56d773a81df36f750bd2a7a8c7547f3fa691cc74
net-next: stmmac: add optional setup function

Instead of adding more ifthen logic for adding a new mac_device_info
setup function, it is easier to add a function pointer to the function
needed.

Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
include/linux/stmmac.h