]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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 18:38:37 +0000 (11:38 -0700)
commit54403b6fda57669ce7406740019fbb87e9956199
tree69aef30534d3d07a285f3bf2db4a7c3cd69b98f7
parentefefe3bd34cad21689edec56822a570159cadaed
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