#include <linux/err.h>
#include <linux/jiffies.h>
#include <linux/of.h>
+#include <linux/mod_devicetable.h>
+#include <linux/property.h>
#include <linux/util_macros.h>
#include <dt-bindings/pwm/pwm.h>
};
MODULE_DEVICE_TABLE(i2c, adt7475_id);
-static const struct of_device_id __maybe_unused adt7475_of_match[] = {
+static const struct of_device_id adt7475_of_match[] = {
{
.compatible = "adi,adt7473",
.data = (void *)adt7473
.class = I2C_CLASS_HWMON,
.driver = {
.name = "adt7475",
- .of_match_table = of_match_ptr(adt7475_of_match),
+ .of_match_table = adt7475_of_match,
},
.probe = adt7475_probe,
.id_table = adt7475_id,