summaryrefslogtreecommitdiffstats
path: root/include/linux/goldfish.h
diff options
context:
space:
mode:
authorAlan Cox <alan@linux.intel.com>2014-05-19 14:34:09 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-20 10:30:40 +0900
commit8d9e9857c576d8d710ae6a6152a6ddcd29772bb1 (patch)
treec29dc0eeb4c6b16eb18828d14d7671b13a22df0c /include/linux/goldfish.h
parent85dfd522f885ee4ec0b0b4efa1fdd9c650e243be (diff)
downloadlinux-8d9e9857c576d8d710ae6a6152a6ddcd29772bb1.tar.gz
linux-8d9e9857c576d8d710ae6a6152a6ddcd29772bb1.tar.xz
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: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/goldfish.h')
-rw-r--r--include/linux/goldfish.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/goldfish.h b/include/linux/goldfish.h
index 9cc28902b54c..569236e6b2bc 100644
--- a/include/linux/goldfish.h
+++ b/include/linux/goldfish.h
@@ -7,7 +7,7 @@ static inline void gf_write64(unsigned long data,
void __iomem *portl, void __iomem *porth)
{
writel((u32)data, portl);
-#ifdef CONFIG_ARCH_DMA_ADDR_T_64BIT
+#ifdef CONFIG_64BIT
writel(data>>32, porth);
#endif
}