X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=drivers%2Fmfd%2Fwm8994-core.c;h=e6fab94e2c8a0fb1eed8df339833e36f2dd7c38b;hb=632b06aa2842b12c6d6a510ec080fb6ebdb38ea5;hp=ba04f1bc70eb52988ce27b5f4e45195e8b216b82;hpb=cf20662db4dfade737015036fa9c63e888350c82;p=~andy%2Flinux diff --git a/drivers/mfd/wm8994-core.c b/drivers/mfd/wm8994-core.c index ba04f1bc70e..e6fab94e2c8 100644 --- a/drivers/mfd/wm8994-core.c +++ b/drivers/mfd/wm8994-core.c @@ -636,7 +636,7 @@ static int wm8994_i2c_probe(struct i2c_client *i2c, if (i2c->dev.of_node) { of_id = of_match_device(wm8994_of_match, &i2c->dev); if (of_id) - wm8994->type = (int)of_id->data; + wm8994->type = (enum wm8994_type)of_id->data; } else { wm8994->type = id->driver_data; }