diff options
author | David Howells <dhowells@redhat.com> | 2014-01-03 11:07:55 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-01-06 07:38:11 -0500 |
commit | 541f597f1080ee615534cb6ccb2253891a29535c (patch) | |
tree | 600994a0c6315bb3cc499284ac0ac73666ac0171 /drivers/regulator | |
parent | 6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae (diff) |
regulator: tps62360: Fix up a pointer-integer size mismatch warning
Fix up the following pointer-integer size mismatch warning in tps62360_probe():
drivers/regulator/tps62360-regulator.c: In function 'tps62360_probe':
drivers/regulator/tps62360-regulator.c:363:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
chip_id = (int)match->data;
^
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/tps62360-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/tps62360-regulator.c b/drivers/regulator/tps62360-regulator.c index c2c0185a2dcd..c3fa15a299b1 100644 --- a/drivers/regulator/tps62360-regulator.c +++ b/drivers/regulator/tps62360-regulator.c | |||
@@ -360,7 +360,7 @@ static int tps62360_probe(struct i2c_client *client, | |||
360 | dev_err(&client->dev, "Error: No device match found\n"); | 360 | dev_err(&client->dev, "Error: No device match found\n"); |
361 | return -ENODEV; | 361 | return -ENODEV; |
362 | } | 362 | } |
363 | chip_id = (int)match->data; | 363 | chip_id = (int)(long)match->data; |
364 | if (!pdata) | 364 | if (!pdata) |
365 | pdata = of_get_tps62360_platform_data(&client->dev); | 365 | pdata = of_get_tps62360_platform_data(&client->dev); |
366 | } else if (id) { | 366 | } else if (id) { |