Commit 5c5b9c24 authored by Linus Torvalds's avatar Linus Torvalds

Fix up typo in ppc64 eeh ioport_map() code.

Noticed by BenH, happily harmless (nothing that uses that
code has been committed yet, and PIO seems to be pretty much
unused on at least the Apple G5 machines: all the normal
hardware is set up purely for MMIO, to the point that I
couldn't even test this thing).
parent e7672879
......@@ -782,7 +782,7 @@ EXPORT_SYMBOL(iowrite32_rep);
void __iomem *ioport_map(unsigned long port, unsigned int len)
{
if (_IO_IS_VALID(port))
if (!_IO_IS_VALID(port))
return NULL;
return (void __iomem *) IO_ADDR_TO_TOKEN(port+pci_io_base);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment