ARM: 6712/1: SPEAr: replace readl(), writel() with relaxed versions in uncompress.h

readl() and writel() calls the outer cache maintainance operations
which are not available during Linux uncompression. This patch replaces
readl() and writel() with readl_relaxed() and writel_relaxed() to avoid
the link time errors.

Reviewed-by: Stanley Miao <stanley.miao@windriver.com>
Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
viresh kumar 2011-02-16 07:41:06 +01:00 коммит произвёл Russell King
Родитель d16613586a
Коммит ac1556b37e
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -24,10 +24,10 @@ static inline void putc(int c)
{ {
void __iomem *base = (void __iomem *)SPEAR_DBG_UART_BASE; void __iomem *base = (void __iomem *)SPEAR_DBG_UART_BASE;
while (readl(base + UART01x_FR) & UART01x_FR_TXFF) while (readl_relaxed(base + UART01x_FR) & UART01x_FR_TXFF)
barrier(); barrier();
writel(c, base + UART01x_DR); writel_relaxed(c, base + UART01x_DR);
} }
static inline void flush(void) static inline void flush(void)