summaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/max77686.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/mfd/max77686.c b/drivers/mfd/max77686.c
index c65332291bb..86e552348db 100644
--- a/drivers/mfd/max77686.c
+++ b/drivers/mfd/max77686.c
@@ -251,10 +251,9 @@ static int max77686_i2c_probe(struct i2c_client *i2c,
if (!match)
return -EINVAL;
- max77686->type = (int)match->data;
- } else {
+ max77686->type = (unsigned long)match->data;
+ } else
max77686->type = id->driver_data;
- }
i2c_set_clientdata(i2c, max77686);
max77686->dev = &i2c->dev;