Skip to content

Commit 2066840

Browse files
committed
Merge tag 'regulator-fix-v6.9-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator
Pull regulator fix from Mark Brown: "One simple regualtor fix, fixing module autoloading on tps65132" * tag 'regulator-fix-v6.9-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator: regulator: tps65132: Add of_match table
2 parents a6bec44 + a469158 commit 2066840

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/regulator/tps65132-regulator.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,10 +267,17 @@ static const struct i2c_device_id tps65132_id[] = {
267267
};
268268
MODULE_DEVICE_TABLE(i2c, tps65132_id);
269269

270+
static const struct of_device_id __maybe_unused tps65132_of_match[] = {
271+
{ .compatible = "ti,tps65132" },
272+
{},
273+
};
274+
MODULE_DEVICE_TABLE(of, tps65132_of_match);
275+
270276
static struct i2c_driver tps65132_i2c_driver = {
271277
.driver = {
272278
.name = "tps65132",
273279
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
280+
.of_match_table = of_match_ptr(tps65132_of_match),
274281
},
275282
.probe = tps65132_probe,
276283
.id_table = tps65132_id,

0 commit comments

Comments
 (0)