Commit 8d9e9857 authored by Alan Cox's avatar Alan Cox Committed by Greg Kroah-Hartman

goldfish: fix >> 32 warning

We should be checking for a 64bit platform not 64bit DMA address types in
the case of Goldfish. The Goldfish virtual platform is either 32/32 or
64/64.
Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 85dfd522
...@@ -7,7 +7,7 @@ static inline void gf_write64(unsigned long data, ...@@ -7,7 +7,7 @@ static inline void gf_write64(unsigned long data,
void __iomem *portl, void __iomem *porth) void __iomem *portl, void __iomem *porth)
{ {
writel((u32)data, portl); writel((u32)data, portl);
#ifdef CONFIG_ARCH_DMA_ADDR_T_64BIT #ifdef CONFIG_64BIT
writel(data>>32, porth); writel(data>>32, porth);
#endif #endif
} }
......
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