diff options
author | Daniel Mack <zonque@gmail.com> | 2013-08-08 06:02:18 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-08-08 06:43:10 -0400 |
commit | d6c7e1139591b9ba7c4ad9c5eec748f0a68ad212 (patch) | |
tree | fc725cd3031a71ba29db586e001a34f720efbe8b | |
parent | abe4c51afda02423c81da6f1eaaa50b733f1ecc2 (diff) |
regulator: max8660: fix build warnings
Fix a build warning for !CONFIG_OF and a cast from void* to
unsigned int which is invalid on 64bit machines.
Signed-off-by: Daniel Mack <zonque@gmail.com>
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r-- | drivers/regulator/max8660.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/regulator/max8660.c b/drivers/regulator/max8660.c index a4f2f1a38342..144bcacd734d 100644 --- a/drivers/regulator/max8660.c +++ b/drivers/regulator/max8660.c | |||
@@ -364,7 +364,7 @@ static int max8660_pdata_from_dt(struct device *dev, | |||
364 | #else | 364 | #else |
365 | static inline int max8660_pdata_from_dt(struct device *dev, | 365 | static inline int max8660_pdata_from_dt(struct device *dev, |
366 | struct device_node **of_node, | 366 | struct device_node **of_node, |
367 | struct max8660_platform_data **pdata) | 367 | struct max8660_platform_data *pdata) |
368 | { | 368 | { |
369 | return 0; | 369 | return 0; |
370 | } | 370 | } |
@@ -380,7 +380,7 @@ static int max8660_probe(struct i2c_client *client, | |||
380 | struct max8660 *max8660; | 380 | struct max8660 *max8660; |
381 | int boot_on, i, id, ret = -EINVAL; | 381 | int boot_on, i, id, ret = -EINVAL; |
382 | struct device_node *of_node[MAX8660_V_END]; | 382 | struct device_node *of_node[MAX8660_V_END]; |
383 | unsigned int type; | 383 | unsigned long type; |
384 | 384 | ||
385 | if (dev->of_node && !pdata) { | 385 | if (dev->of_node && !pdata) { |
386 | const struct of_device_id *id; | 386 | const struct of_device_id *id; |
@@ -395,7 +395,7 @@ static int max8660_probe(struct i2c_client *client, | |||
395 | return ret; | 395 | return ret; |
396 | 396 | ||
397 | pdata = &pdata_of; | 397 | pdata = &pdata_of; |
398 | type = (unsigned int) id->data; | 398 | type = (unsigned long) id->data; |
399 | } else { | 399 | } else { |
400 | type = i2c_id->driver_data; | 400 | type = i2c_id->driver_data; |
401 | memset(of_node, 0, sizeof(of_node)); | 401 | memset(of_node, 0, sizeof(of_node)); |