Message ID | 2443447.AFyh6VXdN9@diego (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Wed, Sep 17, 2014 at 01:21:48PM +0200, Heiko Stübner wrote: > The vendor-id gathered from the dt match-data was cast to int but assigned > to an unsigned long, producing warnings on at least sparc, like Applied, thanks.
diff --git a/drivers/regulator/fan53555.c b/drivers/regulator/fan53555.c index f2f5535..6ca6e26 100644 --- a/drivers/regulator/fan53555.c +++ b/drivers/regulator/fan53555.c @@ -370,7 +370,7 @@ static int fan53555_regulator_probe(struct i2c_client *client, if (!match) return -ENODEV; - di->vendor = (int) match->data; + di->vendor = (unsigned long) match->data; } else { /* if no ramp constraint set, get the pdata ramp_delay */ if (!di->regulator->constraints.ramp_delay) {