aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/mfd/max14577.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mfd/max14577.c b/drivers/mfd/max14577.c
index 36de88d0dedd..4a5e885383f8 100644
--- a/drivers/mfd/max14577.c
+++ b/drivers/mfd/max14577.c
@@ -331,7 +331,8 @@ static int max14577_i2c_probe(struct i2c_client *i2c,
331 331
332 of_id = of_match_device(max14577_dt_match, &i2c->dev); 332 of_id = of_match_device(max14577_dt_match, &i2c->dev);
333 if (of_id) 333 if (of_id)
334 max14577->dev_type = (unsigned int)of_id->data; 334 max14577->dev_type =
335 (enum maxim_device_type)of_id->data;
335 } else { 336 } else {
336 max14577->dev_type = id->driver_data; 337 max14577->dev_type = id->driver_data;
337 } 338 }