summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/tps65217.c
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2014-02-03 08:24:20 +0000
committerLee Jones <lee.jones@linaro.org>2014-02-19 13:30:30 +0000
commit5c6fbd56d16f38fddec629e1dccdeee5ad7f5a42 (patch)
treed496431bf5f56087ada87ead69f4909cb3dc2c15 /drivers/mfd/tps65217.c
parent7f8279ce04589a2e0f29b865c3af40609b0ea08d (diff)
downloadop-kernel-dev-5c6fbd56d16f38fddec629e1dccdeee5ad7f5a42.zip
op-kernel-dev-5c6fbd56d16f38fddec629e1dccdeee5ad7f5a42.tar.gz
mfd: tps65217: Naturalise cross-architecture discrepancies
If we compile the TPS65217 for a 64bit architecture we receive the following warnings: drivers/mfd/tps65217.c: In function ‘tps65217_probe’: drivers/mfd/tps65217.c:173:13: warning: cast from pointer to integer of different size chip_id = (unsigned int)match->data; ^ Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/tps65217.c')
-rw-r--r--drivers/mfd/tps65217.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mfd/tps65217.c b/drivers/mfd/tps65217.c
index 966cf65..3cc4c70 100644
--- a/drivers/mfd/tps65217.c
+++ b/drivers/mfd/tps65217.c
@@ -158,7 +158,7 @@ static int tps65217_probe(struct i2c_client *client,
{
struct tps65217 *tps;
unsigned int version;
- unsigned int chip_id = ids->driver_data;
+ unsigned long chip_id = ids->driver_data;
const struct of_device_id *match;
bool status_off = false;
int ret;
@@ -170,7 +170,7 @@ static int tps65217_probe(struct i2c_client *client,
"Failed to find matching dt id\n");
return -EINVAL;
}
- chip_id = (unsigned int)(unsigned long)match->data;
+ chip_id = (unsigned long)match->data;
status_off = of_property_read_bool(client->dev.of_node,
"ti,pmic-shutdown-controller");
}
OpenPOWER on IntegriCloud