3c59x: fix PCI resource management
authorSergei Shtylyov <sshtylyov@ru.mvista.com>
Thu, 9 May 2013 11:14:07 +0000 (11:14 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 19 May 2013 17:54:46 +0000 (10:54 -0700)
commit9faef35be7ff4fbaeb6ed86ca5a3fdcf46d630be
tree5b888e39ca0917b8553478b1e4567548ed6cf773
parent555f6a1e0bbc82fde6e4f537e5618b8921134b64
3c59x: fix PCI resource management

[ Upstream commit 4b264a1676e70dc656ba53a8cac690f2d4b65f4e ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/3com/3c59x.c