r8169: improve pci region handling
authorHeiner Kallweit <hkallweit1@gmail.com>
Tue, 17 Apr 2018 21:34:22 +0000 (23:34 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Apr 2018 01:11:59 +0000 (21:11 -0400)
commitc8d48d9c5bf7a0e884c17867eb8e0b30b7eae139
tree29969a17b05cdc24ce48a57dba1712f96b8dd6a0
parenta4328ddb55f27b7ed0ec0aa7e9509869bbbbf097
r8169: improve pci region handling

The region to be used is always the first of type IORESOURCE_MEM.
We can implement this rule directly w/o having to specify which
region is the first one per configuration entry.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169.c