aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform
diff options
context:
space:
mode:
authorOctavian Purdila <octavian.purdila@intel.com>2014-05-16 01:24:58 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-16 14:32:51 -0400
commitf2dbdf625ddc98fece71a79d78d0981204e933ee (patch)
tree192456433d1a08f0926a6d559e0573170856ae8e /drivers/platform
parent0f18a27787a340b26c4f64fae8f2bb103f50b546 (diff)
goldfish: bus: fix warnings for 32bit builds
drivers/platform/goldfish/pdev_bus.c: In function 'goldfish_new_pdev': drivers/platform/goldfish/pdev_bus.c:136:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] writel((u32)(u64)name, pdev_bus_base + PDEV_BUS_GET_NAME); Reported-by: Fengguang Wu <fengguang.wu@intel.com> Cc: Jun Tian <jun.j.tian@intel.com> Acked-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Octavian Purdila <octavian.purdila@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/goldfish/pdev_bus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/goldfish/pdev_bus.c b/drivers/platform/goldfish/pdev_bus.c
index eb254400c44a..8c43589c3edb 100644
--- a/drivers/platform/goldfish/pdev_bus.c
+++ b/drivers/platform/goldfish/pdev_bus.c
@@ -133,7 +133,7 @@ static int goldfish_new_pdev(void)
133#ifdef CONFIG_64BIT 133#ifdef CONFIG_64BIT
134 writel((u32)((u64)name>>32), pdev_bus_base + PDEV_BUS_GET_NAME_HIGH); 134 writel((u32)((u64)name>>32), pdev_bus_base + PDEV_BUS_GET_NAME_HIGH);
135#endif 135#endif
136 writel((u32)(u64)name, pdev_bus_base + PDEV_BUS_GET_NAME); 136 writel((u32)(unsigned long)name, pdev_bus_base + PDEV_BUS_GET_NAME);
137 name[name_len] = '\0'; 137 name[name_len] = '\0';
138 dev->pdev.id = readl(pdev_bus_base + PDEV_BUS_ID); 138 dev->pdev.id = readl(pdev_bus_base + PDEV_BUS_ID);
139 dev->pdev.resource[0].start = base; 139 dev->pdev.resource[0].start = base;