Commit a51b907b authored by Axel Lin's avatar Axel Lin Committed by Liam Girdwood

regulator: Add MODULE_DEVICE_TABLE to max8997 and max8998

The device table is required to load modules based on modaliases.
Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Cc: MyungJoo Ham <myungjoo.ham@smasung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
parent 5362b098
...@@ -1185,6 +1185,7 @@ static const struct platform_device_id max8997_pmic_id[] = { ...@@ -1185,6 +1185,7 @@ static const struct platform_device_id max8997_pmic_id[] = {
{ "max8997-pmic", 0}, { "max8997-pmic", 0},
{ }, { },
}; };
MODULE_DEVICE_TABLE(platform, max8997_pmic_id);
static struct platform_driver max8997_pmic_driver = { static struct platform_driver max8997_pmic_driver = {
.driver = { .driver = {
......
...@@ -887,6 +887,7 @@ static const struct platform_device_id max8998_pmic_id[] = { ...@@ -887,6 +887,7 @@ static const struct platform_device_id max8998_pmic_id[] = {
{ "lp3974-pmic", TYPE_LP3974 }, { "lp3974-pmic", TYPE_LP3974 },
{ } { }
}; };
MODULE_DEVICE_TABLE(platform, max8998_pmic_id);
static struct platform_driver max8998_pmic_driver = { static struct platform_driver max8998_pmic_driver = {
.driver = { .driver = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment