]> git.baikalelectronics.ru Git - kernel.git/commitdiff
iio: accel: dmard06: Use mod_devicetable.h and drop of_match_ptr macro
authorNishant Malpani <nish.malpani25@gmail.com>
Fri, 24 Apr 2020 22:44:37 +0000 (04:14 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 25 Apr 2020 14:29:09 +0000 (15:29 +0100)
Enables ACPI DSDT to probe via PRP0001 and the compatible property.

Signed-off-by: Nishant Malpani <nish.malpani25@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/dmard06.c

index 2bf210fa4ba6228fc66dfbf4c50b91e6b48d8a6c..ef89bded7390bc6d3dc63df8a657119794aca341 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <linux/module.h>
+#include <linux/mod_devicetable.h>
 #include <linux/i2c.h>
 #include <linux/iio/iio.h>
 
@@ -226,7 +227,7 @@ static struct i2c_driver dmard06_driver = {
        .id_table = dmard06_id,
        .driver = {
                .name = DMARD06_DRV_NAME,
-               .of_match_table = of_match_ptr(dmard06_of_match),
+               .of_match_table = dmard06_of_match,
                .pm = DMARD06_PM_OPS,
        },
 };