goldfish: fix >> 32 warning
authorAlan Cox <alan@linux.intel.com>
Mon, 19 May 2014 13:34:09 +0000 (14:34 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 May 2014 01:30:40 +0000 (10:30 +0900)
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>
include/linux/goldfish.h

index 9cc28902b54cc6df80f2c866f3815a2094d05cbe..569236e6b2bc99f73f22f7b2d3ee415bb3aa6bf6 100644 (file)
@@ -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
 }