diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2011-11-29 13:40:42 -0500 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2011-12-04 09:00:07 -0500 |
commit | 8593dd375ad10045e69b7b43fc1d885929aebbd5 (patch) | |
tree | 25ccfe27ef7eb4532b0e58e8c1c036b75c5ffd25 /arch/tile/include/asm/io.h | |
parent | a21a2fd4036f9a572415a7543896a1163c211ee5 (diff) |
tile: don't panic on iomap
I think panic on iomap is there just for debugging.
If we return NULL instead, the generic pci_iomap will
DTRT so we don't need to roll our own.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'arch/tile/include/asm/io.h')
-rw-r--r-- | arch/tile/include/asm/io.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/tile/include/asm/io.h b/arch/tile/include/asm/io.h index c9ea1652af03..d2152deb1f3c 100644 --- a/arch/tile/include/asm/io.h +++ b/arch/tile/include/asm/io.h | |||
@@ -204,7 +204,8 @@ static inline long ioport_panic(void) | |||
204 | 204 | ||
205 | static inline void __iomem *ioport_map(unsigned long port, unsigned int len) | 205 | static inline void __iomem *ioport_map(unsigned long port, unsigned int len) |
206 | { | 206 | { |
207 | return (void __iomem *) ioport_panic(); | 207 | pr_info("ioport_map: mapping IO resources is unsupported on tile.\n"); |
208 | return NULL; | ||
208 | } | 209 | } |
209 | 210 | ||
210 | static inline void ioport_unmap(void __iomem *addr) | 211 | static inline void ioport_unmap(void __iomem *addr) |