]> git.baikalelectronics.ru Git - kernel.git/commit
tty/nozomi: use pci_iomap instead of ioremap_nocache
authorHugo Lefeuvre <hle@owl.eu.com>
Sun, 10 Feb 2019 17:12:12 +0000 (18:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Feb 2019 09:26:45 +0000 (10:26 +0100)
commit9ed1198b1bef73e935f033746935b383178e817e
treef89c9ea0a1133427f14b2629bf6192c823a2ec55
parent38a1a26c4588b7c09e7967cb6bd5cc748ebdf2b3
tty/nozomi: use pci_iomap instead of ioremap_nocache

Use pci_iomap instead of ioremap_nocache in nozomi_card_init(). This
is a cleaner way to do PCI MMIO (performs additional checks) and
allows to drop the manual call to pci_resource_start.

pci_iomap relies on ioremap for MMIO and thus has uncached behavior.

Signed-off-by: Hugo Lefeuvre <hle@owl.eu.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/nozomi.c