net: stmmac: Switch to devm_alloc_etherdev_mqs
authorJisheng Zhang <Jisheng.Zhang@synaptics.com>
Wed, 29 May 2019 02:26:07 +0000 (02:26 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 May 2019 18:45:41 +0000 (11:45 -0700)
commit9737070c6823dc23a2a53fbffb3ebcceee9c96c1
treef306159ef9556c0010ffdbf48faebd2a798b7a32
parent621ccc6cc5f8d6730b740d31d4818227866c93c9
net: stmmac: Switch to devm_alloc_etherdev_mqs

Make use of devm_alloc_etherdev_mqs() to simplify the code.

Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c