]> git.ipfire.org Git - people/ms/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)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 30 May 2013 13:35:13 +0000 (14:35 +0100)
commitbbdec1089e3dcdbaa1cc1b817b62bf8d91ba767f
tree9338306a07f53a10f5362230a76ab75976a9cdbe
parent6261f7e1bb2e940c457aeda29262842e9ab5f1e2
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: Ben Hutchings <ben@decadent.org.uk>
drivers/net/ethernet/3com/3c59x.c