]> git.baikalelectronics.ru Git - kernel.git/commit
stmmac: pci: use defined constant instead of magic number
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 5 Nov 2014 10:27:26 +0000 (12:27 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Nov 2014 19:38:57 +0000 (14:38 -0500)
commit2d71ddd53d4ee6770aa8109a69ce57a47abab2c4
tree75daf996e5bc0fe936844ed68d10333b1423f1ad
parentf8cccb23a4a01c87a8072103b093fe03bb42d35f
stmmac: pci: use defined constant instead of magic number

The last standard PCI resource is defined as PCI_STD_RESOURCE_END. Thus, we
could use it instead of plain integer.

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