Add a compatible string for the devicetree. Signed-off-by: Angus Ainslie <angus@xxxxxxxx> --- drivers/usb/typec/tps6598x.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/usb/typec/tps6598x.c b/drivers/usb/typec/tps6598x.c index f661d8722ee0..2e71a35cc9d8 100644 --- a/drivers/usb/typec/tps6598x.c +++ b/drivers/usb/typec/tps6598x.c @@ -981,9 +981,16 @@ static const struct i2c_device_id tps6598x_id[] = { }; MODULE_DEVICE_TABLE(i2c, tps6598x_id); +static const struct of_device_id tps6598x_of_match[] = { + { .compatible = "ti,tps6598x", }, + { }, +}; +MODULE_DEVICE_TABLE(of, tps6598x_of_match); + static struct i2c_driver tps6598x_i2c_driver = { .driver = { .name = "tps6598x", + .of_match_table = of_match_ptr(tps6598x_of_match), }, .probe_new = tps6598x_probe, .remove = tps6598x_remove, -- 2.25.1