diff options
author | Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com> | 2018-10-02 10:16:50 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-10-02 15:58:11 +0100 |
commit | eb108c3611dd21d5d058cee25fec1c29baf5b0c9 (patch) | |
tree | c60b0ab0dd2ab23fd0f515565c9f16d3221fd8f9 /drivers/mfd | |
parent | 2ece646c90c5b45dd76c76ea207a3f3459f2c472 (diff) | |
download | lwn-eb108c3611dd21d5d058cee25fec1c29baf5b0c9.tar.gz lwn-eb108c3611dd21d5d058cee25fec1c29baf5b0c9.zip |
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 <matti.vaittinen@fi.rohmeurope.com>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/rohm-bd718x7.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/rohm-bd718x7.c b/drivers/mfd/rohm-bd718x7.c index 161c8aac6d86..a29d529a96f4 100644 --- a/drivers/mfd/rohm-bd718x7.c +++ b/drivers/mfd/rohm-bd718x7.c @@ -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); |