|
@@ -652,7 +652,6 @@ static const struct i2c_device_id drv260x_id[] = {
|
|
};
|
|
};
|
|
MODULE_DEVICE_TABLE(i2c, drv260x_id);
|
|
MODULE_DEVICE_TABLE(i2c, drv260x_id);
|
|
|
|
|
|
-#ifdef CONFIG_OF
|
|
|
|
static const struct of_device_id drv260x_of_match[] = {
|
|
static const struct of_device_id drv260x_of_match[] = {
|
|
{ .compatible = "ti,drv2604", },
|
|
{ .compatible = "ti,drv2604", },
|
|
{ .compatible = "ti,drv2604l", },
|
|
{ .compatible = "ti,drv2604l", },
|
|
@@ -661,13 +660,12 @@ static const struct of_device_id drv260x_of_match[] = {
|
|
{ }
|
|
{ }
|
|
};
|
|
};
|
|
MODULE_DEVICE_TABLE(of, drv260x_of_match);
|
|
MODULE_DEVICE_TABLE(of, drv260x_of_match);
|
|
-#endif
|
|
|
|
|
|
|
|
static struct i2c_driver drv260x_driver = {
|
|
static struct i2c_driver drv260x_driver = {
|
|
.probe = drv260x_probe,
|
|
.probe = drv260x_probe,
|
|
.driver = {
|
|
.driver = {
|
|
.name = "drv260x-haptics",
|
|
.name = "drv260x-haptics",
|
|
- .of_match_table = of_match_ptr(drv260x_of_match),
|
|
|
|
|
|
+ .of_match_table = drv260x_of_match,
|
|
.pm = &drv260x_pm_ops,
|
|
.pm = &drv260x_pm_ops,
|
|
},
|
|
},
|
|
.id_table = drv260x_id,
|
|
.id_table = drv260x_id,
|