]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: 74xx: Fix build warning about void to integer cast
authorNicholas Krause <xerofoify@gmail.com>
Sat, 4 Jul 2015 20:34:32 +0000 (16:34 -0400)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 16 Jul 2015 11:59:47 +0000 (13:59 +0200)
commit65f094d6e0cb32f14b35c63e9b697012e8a389c5
tree63dd2392bcd2fe289c8dcc109bf59d4f5b7405a0
parent5f08480e18df1ad453a3e597d1b62048a50e262c
gpio: 74xx: Fix build warning about void to integer cast

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>
drivers/gpio/gpio-74xx-mmio.c