summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Krause <xerofoify@gmail.com>2015-07-04 16:34:32 -0400
committerSasha Levin <alexander.levin@microsoft.com>2018-01-17 12:55:42 -0500
commitba00cc7686f6df5ca08a2a40d5c80ef744368d23 (patch)
tree828ca141db5d6fb933ce4997de8c328d90d8d4fc
parent6f2248686a9b20ad8c9bea6126b2495d7f8048e7 (diff)
downloadlinux-rt-ba00cc7686f6df5ca08a2a40d5c80ef744368d23.tar.gz
gpio: 74xx: Fix build warning about void to integer cast
[ Upstream commit 54442658d8e83b0589731620bd958cc8b2857167 ] This fixes the build warning , warning: cast from pointer to integer of different size when building this file on a x86 allmodconfig configuration. In order for me to fix this build warning I changed the cast in the function mmio_74xx_gpio_probe from casting the variable data of the stucture pointer of_id to uintptr_t rather then unsigned when assigning to the variable flag of the structure pointer priv of the structure type mmio_74xx_gpio_priv. Signed-off-by: Nicholas Krause <xerofoify@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
-rw-r--r--drivers/gpio/gpio-74xx-mmio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-74xx-mmio.c b/drivers/gpio/gpio-74xx-mmio.c
index 0763655cca6c..6ed7c0fb3378 100644
--- a/drivers/gpio/gpio-74xx-mmio.c
+++ b/drivers/gpio/gpio-74xx-mmio.c
@@ -129,7 +129,7 @@ static int mmio_74xx_gpio_probe(struct platform_device *pdev)
if (IS_ERR(dat))
return PTR_ERR(dat);
- priv->flags = (unsigned)of_id->data;
+ priv->flags = (uintptr_t) of_id->data;
err = bgpio_init(&priv->bgc, &pdev->dev,
DIV_ROUND_UP(MMIO_74XX_BIT_CNT(priv->flags), 8),