3c59x: fix PCI resource management
authorSergei Shtylyov <sshtylyov@ru.mvista.com>
Thu, 9 May 2013 11:14:07 +0000 (11:14 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 12 May 2013 00:40:14 +0000 (17:40 -0700)
commit4b264a1676e70dc656ba53a8cac690f2d4b65f4e
treecab97086e17afe834d12555c7fbee6821d0837d9
parent79e0c19e85cd1617efcf441988a206ffc96b56a1
3c59x: fix PCI resource management

The driver wrongly claimed I/O ports at an address returned by pci_iomap() --
even if it was passed an MMIO address.  Fix this by claiming/releasing all PCI
resources in the PCI driver's probe()/remove() methods instead and get rid of
'must_free_region' flag weirdness (why would Cardbus claim anything for us?).

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/3com/3c59x.c