]> git.baikalelectronics.ru Git - kernel.git/commit
stmmac: intel: Remove unnecessary loop for PCI BARs
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 30 Apr 2020 15:02:50 +0000 (18:02 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Apr 2020 19:50:15 +0000 (12:50 -0700)
commit123a70796ab73edcdfb337bc4b59eecfb28ed464
tree62ef1a39973f9f637ab9cb47a9c545af68d5af7d
parent49a4d81c092753b1931ee53f6d08a39253d6662f
stmmac: intel: Remove unnecessary loop for PCI BARs

Copy'n'paste without thinking is not a good idea and in this case it brought
unnecessary loop over PCI BAR resources which was needed to workaround one of
STMicro RVP boards. Remove unnecessary loops from Intel driver.

Fixes: 300c10cdd817 ("net: stmmac: create dwmac-intel.c to contain all Intel platform")
Cc: Voon Weifeng <weifeng.voon@intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c