|
@@ -4183,24 +4183,29 @@ void rt5659_i2c_shutdown(struct i2c_client *client)
|
|
|
regmap_write(rt5659->regmap, RT5659_RESET, 0);
|
|
|
}
|
|
|
|
|
|
+#ifdef CONFIG_OF
|
|
|
static const struct of_device_id rt5659_of_match[] = {
|
|
|
{ .compatible = "realtek,rt5658", },
|
|
|
{ .compatible = "realtek,rt5659", },
|
|
|
- {},
|
|
|
+ { },
|
|
|
};
|
|
|
+MODULE_DEVICE_TABLE(of, rt5659_of_match);
|
|
|
+#endif
|
|
|
|
|
|
+#ifdef CONFIG_ACPI
|
|
|
static struct acpi_device_id rt5659_acpi_match[] = {
|
|
|
- { "10EC5658", 0},
|
|
|
- { "10EC5659", 0},
|
|
|
- { },
|
|
|
+ { "10EC5658", 0, },
|
|
|
+ { "10EC5659", 0, },
|
|
|
+ { },
|
|
|
};
|
|
|
MODULE_DEVICE_TABLE(acpi, rt5659_acpi_match);
|
|
|
+#endif
|
|
|
|
|
|
struct i2c_driver rt5659_i2c_driver = {
|
|
|
.driver = {
|
|
|
.name = "rt5659",
|
|
|
.owner = THIS_MODULE,
|
|
|
- .of_match_table = rt5659_of_match,
|
|
|
+ .of_match_table = of_match_ptr(rt5659_of_match),
|
|
|
.acpi_match_table = ACPI_PTR(rt5659_acpi_match),
|
|
|
},
|
|
|
.probe = rt5659_i2c_probe,
|