Skip to content

Commit ded7b2a

Browse files
docularxubroonie
authored andcommitted
regulator: hi6421v530: Describe consumed platform device
The hi6421v530-regulator driver consumes a similarly named platform device. Adding that to the module device table, allows modprobe to locate this driver once the device is created. Signed-off-by: Guodong Xu <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent 5c7024a commit ded7b2a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/regulator/hi6421v530-regulator.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,14 @@ static int hi6421v530_regulator_probe(struct platform_device *pdev)
194194
return 0;
195195
}
196196

197+
static const struct platform_device_id hi6421v530_regulator_table[] = {
198+
{ .name = "hi6421v530-regulator" },
199+
{},
200+
};
201+
MODULE_DEVICE_TABLE(platform, hi6421v530_regulator_table);
202+
197203
static struct platform_driver hi6421v530_regulator_driver = {
204+
.id_table = hi6421v530_regulator_table,
198205
.driver = {
199206
.name = "hi6421v530-regulator",
200207
},

0 commit comments

Comments
 (0)