};
 MODULE_DEVICE_TABLE(i2c, rt5616_i2c_id);
 
+#if defined(CONFIG_OF)
+static const struct of_device_id rt5616_of_match[] = {
+       { .compatible = "realtek,rt5616", },
+       {},
+};
+MODULE_DEVICE_TABLE(of, rt5616_of_match);
+#endif
+
 static int rt5616_i2c_probe(struct i2c_client *i2c,
                    const struct i2c_device_id *id)
 {
 static struct i2c_driver rt5616_i2c_driver = {
        .driver = {
                .name = "rt5616",
+               .of_match_table = of_match_ptr(rt5616_of_match),
        },
        .probe = rt5616_i2c_probe,
        .remove = rt5616_i2c_remove,