]> git.karo-electronics.de Git - linux-beck.git/commit
asm-generic/io.h: Fix ioport_map() for !CONFIG_GENERIC_IOMAP
authorLiviu Dudau <Liviu.Dudau@arm.com>
Mon, 29 Sep 2014 14:29:20 +0000 (15:29 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 30 Sep 2014 15:42:44 +0000 (09:42 -0600)
commit112eeaa7f87bbd2925e919486bb504f8954fa675
tree9a03aed0429ce92cf5fd218f14b3427bcc5e1ec1
parent52addcf9d6669fa439387610bc65c92fa0980cef
asm-generic/io.h: Fix ioport_map() for !CONFIG_GENERIC_IOMAP

The !CONFIG_GENERIC_IOMAP version of ioport_map() is wrong.  It returns a
mapped, i.e., virtual, address that can start from zero and completely
ignores the PCI_IOBASE and IO_SPACE_LIMIT that most architectures that use
!CONFIG_GENERIC_MAP define.

Tested-by: Tanmay Inamdar <tinamdar@apm.com>
Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
include/asm-generic/io.h