Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / arch / sparc / lib / iomap.c
blobc9da9f139694dafe211b5bb30e4d36892cabaf77
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * Implement the sparc iomap interfaces
4 */
5 #include <linux/pci.h>
6 #include <linux/module.h>
7 #include <asm/io.h>
9 /* Create a virtual mapping cookie for an IO port range */
10 void __iomem *ioport_map(unsigned long port, unsigned int nr)
12 return (void __iomem *) (unsigned long) port;
15 void ioport_unmap(void __iomem *addr)
17 /* Nothing to do */
19 EXPORT_SYMBOL(ioport_map);
20 EXPORT_SYMBOL(ioport_unmap);
22 void pci_iounmap(struct pci_dev *dev, void __iomem * addr)
24 /* nothing to do */
26 EXPORT_SYMBOL(pci_iounmap);