Skip to content

Commit

Permalink
mfd: max77686: Export OF module alias information
Browse files Browse the repository at this point in the history
When the device is registered via OF, the OF table is used to match the
driver instead of the I2C device ID table but the entries in the latter
are used as aliasses to load the module if the driver was not built-in.

This is because the I2C core always reports an I2C module alias instead
of an OF one but that could change so it is better to always export it.

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
  • Loading branch information
Javier Martinez Canillas authored and Lee Jones committed Mar 16, 2016
1 parent a52e46c commit 7f8ada1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/mfd/max77686.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ static const struct of_device_id max77686_pmic_dt_match[] = {
},
{ },
};
MODULE_DEVICE_TABLE(of, max77686_pmic_dt_match);

static int max77686_i2c_probe(struct i2c_client *i2c,
const struct i2c_device_id *id)
Expand Down

0 comments on commit 7f8ada1

Please sign in to comment.