]> git.ipfire.org Git - thirdparty/linux.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)
commitc392ed4642050577847cbd7247d0140022b9b703
treef89c9ea0a1133427f14b2629bf6192c823a2ec55
parent1355cba9c3bae4196f4d9ae4a38ae2f1e9002bea
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