mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
regulator: bd718xx: fix build warning on x86_64
Casting address to unsigned int causes a warning on some 64 bit architectures. Fix the cast. Signed-off-by: Matti Vaittinen <[email protected]> Reported-by: Stephen Rothwell <[email protected]> Signed-off-by: Mark Brown <[email protected]>
This commit is contained in:
parent
2ece646c90
commit
eb108c3611
1 changed files with 1 additions and 1 deletions
|
|
@ -98,7 +98,7 @@ static int bd718xx_i2c_probe(struct i2c_client *i2c,
|
|||
return -ENOMEM;
|
||||
|
||||
bd718xx->chip_irq = i2c->irq;
|
||||
bd718xx->chip_type = (unsigned int)
|
||||
bd718xx->chip_type = (unsigned int)(uintptr_t)
|
||||
of_device_get_match_data(&i2c->dev);
|
||||
bd718xx->dev = &i2c->dev;
|
||||
dev_set_drvdata(&i2c->dev, bd718xx);
|
||||
|
|
|
|||
Loading…
Reference in a new issue