s390/pci: fix [un]map_resources sequence
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Fri, 27 Feb 2015 15:43:21 +0000 (16:43 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 27 Feb 2015 16:50:04 +0000 (17:50 +0100)
commit1803ba2d7a55af525c46d8ce9161521dd2ae4400
tree8b74f5cfd3ad8941a4282c48d065023f38229f34
parentfb3d1c085c05e0e4b112d915dbd06b20b259e6c5
s390/pci: fix [un]map_resources sequence

Commit 8cfc99b58366 ("s390: add pci_iomap_range") introduced counters
to keep track of the number of mappings created. This revealed that
we don't have our internal mappings in order when using hotunplug or
resume from hibernate. This patch addresses both issues.

Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/pci/pci.c