s390/pci: ioremap() align with generic code
authorNiklas Schnelle <schnelle@linux.ibm.com>
Fri, 28 Feb 2020 09:27:22 +0000 (10:27 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Wed, 20 May 2020 08:22:52 +0000 (10:22 +0200)
commita999eb96fdd4da488ac3085c40e20d61de26f6af
tree8953876566c8a5830aa519d0b9ad412a67ebf887
parentbc4b295e87a86bf14333753daeb1c84909197c46
s390/pci: ioremap() align with generic code

Let's use the same signature and parameter names as in the generic
ioremap() definition making the physical address' type explicit.

Add a check against address wrap around as in the generic
lib/ioremap.c:ioremap_prot() code.

Finally use free_vm_area() instead of vunmap() as in the generic code.
Besides being clearer free_vm_area() can also skip a few additional
checks compared with vunmap().

Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Reviewed-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/include/asm/io.h
arch/s390/pci/pci.c