Skip to content

Commit

Permalink
tile: don't panic on iomap
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael S. Tsirkin committed Dec 4, 2011
1 parent a21a2fd commit 8593dd3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/tile/include/asm/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ static inline long ioport_panic(void)

static inline void __iomem *ioport_map(unsigned long port, unsigned int len)
{
return (void __iomem *) ioport_panic();
pr_info("ioport_map: mapping IO resources is unsupported on tile.\n");
return NULL;
}

static inline void ioport_unmap(void __iomem *addr)
Expand Down

0 comments on commit 8593dd3

Please sign in to comment.