stmmac: pci: allocate memory resources dynamically
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 28 Nov 2014 13:40:56 +0000 (15:40 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 6 Dec 2014 05:03:48 +0000 (21:03 -0800)
commitc4b2b9a849eaf892fa53bf7fa90c67613ceb83c2
tree5c52afee288b7857fd83806adf2e3d4fbe987a63
parent244ebd9f8fa8beb7b37bdeebd6c5308b61f98aef
stmmac: pci: allocate memory resources dynamically

Instead of using global variables we are going to use dynamically allocated
memory. It allows to append a support of more than one ethernet adapter which
might have different settings simultaniously.

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