summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/arizona-i2c.c
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2014-07-02 14:28:46 +0100
committerLee Jones <lee.jones@linaro.org>2014-07-09 16:38:01 +0100
commit942786e6e647cef94cf96dcd836d343be55fc452 (patch)
treec3fd1872c504dfd7181d753d102dbac9c6ddcbe1 /drivers/mfd/arizona-i2c.c
parentc00572bc94684a61628a7f6f34f5ce64345742cc (diff)
downloadblackbird-op-linux-942786e6e647cef94cf96dcd836d343be55fc452.tar.gz
blackbird-op-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-i2c.c')
-rw-r--r--drivers/mfd/arizona-i2c.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/mfd/arizona-i2c.c b/drivers/mfd/arizona-i2c.c
index beccb790c9ba..9d4156fb082a 100644
--- a/drivers/mfd/arizona-i2c.c
+++ b/drivers/mfd/arizona-i2c.c
@@ -24,11 +24,12 @@
#include "arizona.h"
static int arizona_i2c_probe(struct i2c_client *i2c,
- const struct i2c_device_id *id)
+ const struct i2c_device_id *id)
{
struct arizona *arizona;
const struct regmap_config *regmap_config;
- int ret, type;
+ unsigned long type;
+ int ret;
if (i2c->dev.of_node)
type = arizona_of_get_type(&i2c->dev);
OpenPOWER on IntegriCloud