summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/arizona-spi.c
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2014-07-02 15:28:46 +0200
committerLee Jones <lee.jones@linaro.org>2014-07-09 17:38:01 +0200
commit942786e6e647cef94cf96dcd836d343be55fc452 (patch)
treec3fd1872c504dfd7181d753d102dbac9c6ddcbe1 /drivers/mfd/arizona-spi.c
parentmfd: stmpe: Rid data size incompatibility warn when building for 64bit (diff)
downloadlinux-942786e6e647cef94cf96dcd836d343be55fc452.tar.xz
linux-942786e6e647cef94cf96dcd836d343be55fc452.zip
mfd: arizona: Rid data size incompatibility warn when building for 64bit
Extinguishes: ../drivers/mfd/arizona-core.c: In function ‘arizona_of_get_type’: ../drivers/mfd/arizona-core.c:505:10: warning: cast from pointer to integer of different size Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/arizona-spi.c')
-rw-r--r--drivers/mfd/arizona-spi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mfd/arizona-spi.c b/drivers/mfd/arizona-spi.c
index 1ca554b18bef..5145d78bf07e 100644
--- a/drivers/mfd/arizona-spi.c
+++ b/drivers/mfd/arizona-spi.c
@@ -28,7 +28,8 @@ static int arizona_spi_probe(struct spi_device *spi)
const struct spi_device_id *id = spi_get_device_id(spi);
struct arizona *arizona;
const struct regmap_config *regmap_config;
- int ret, type;
+ unsigned long type;
+ int ret;
if (spi->dev.of_node)
type = arizona_of_get_type(&spi->dev);