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)
commitec33d71de7309c50531c2ae0eb178244899e6e46
tree4b4f40d2f9482a25a1ebc4e9e40dc79012cbddd6
parent3874191898675ac34b6d1d94cfe997c570492bbb
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