aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/hwmon/ina209.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/hwmon/ina209.c b/drivers/hwmon/ina209.c
index 5378fdefc1f7..c5f20f03e0be 100644
--- a/drivers/hwmon/ina209.c
+++ b/drivers/hwmon/ina209.c
@@ -608,11 +608,18 @@ static const struct i2c_device_id ina209_id[] = {
608}; 608};
609MODULE_DEVICE_TABLE(i2c, ina209_id); 609MODULE_DEVICE_TABLE(i2c, ina209_id);
610 610
611static const struct of_device_id ina209_of_match[] = {
612 { .compatible = "ti,ina209" },
613 { },
614};
615MODULE_DEVICE_TABLE(of, ina209_of_match);
616
611/* This is the driver that will be inserted */ 617/* This is the driver that will be inserted */
612static struct i2c_driver ina209_driver = { 618static struct i2c_driver ina209_driver = {
613 .class = I2C_CLASS_HWMON, 619 .class = I2C_CLASS_HWMON,
614 .driver = { 620 .driver = {
615 .name = "ina209", 621 .name = "ina209",
622 .of_match_table = of_match_ptr(ina209_of_match),
616 }, 623 },
617 .probe = ina209_probe, 624 .probe = ina209_probe,
618 .remove = ina209_remove, 625 .remove = ina209_remove,