Skip to content

Commit a8ea49d

Browse files
docularxubroonie
authored andcommitted
regulator: hi6421: Describe consumed platform device
The hi6421-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 2ea659a commit a8ea49d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/regulator/hi6421-regulator.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,14 @@ static int hi6421_regulator_probe(struct platform_device *pdev)
621621
return 0;
622622
}
623623

624+
static const struct platform_device_id hi6421_regulator_table[] = {
625+
{ .name = "hi6421-regulator" },
626+
{},
627+
};
628+
MODULE_DEVICE_TABLE(platform, hi6421_regulator_table);
629+
624630
static struct platform_driver hi6421_regulator_driver = {
631+
.id_table = hi6421_regulator_table,
625632
.driver = {
626633
.name = "hi6421-regulator",
627634
},

0 commit comments

Comments
 (0)