#include <linux/i3c/device.h>
#include <linux/hwmon.h>
#include <linux/err.h>
-#include <linux/of.h>
+#include <linux/mod_devicetable.h>
+#include <linux/property.h>
#include <linux/regmap.h>
#include <linux/util_macros.h>
#include <linux/regulator/consumer.h>
return lm75_generic_probe(dev, id_data->name, id_data->type, 0, regmap);
}
-static const struct of_device_id __maybe_unused lm75_of_match[] = {
+static const struct of_device_id lm75_of_match[] = {
{
.compatible = "adi,adt75",
.data = (void *)adt75
.class = I2C_CLASS_HWMON,
.driver = {
.name = "lm75",
- .of_match_table = of_match_ptr(lm75_of_match),
+ .of_match_table = lm75_of_match,
.pm = LM75_DEV_PM_OPS,
},
.probe = lm75_i2c_probe,