summaryrefslogtreecommitdiff
path: root/drivers/iio/accel
diff options
context:
space:
mode:
authorNishant Malpani <nish.malpani25@gmail.com>2020-04-25 01:44:37 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2020-04-25 17:29:09 +0300
commit6d6c5e56d7718cdb7903d8ad2a1048fbe92afba6 (patch)
tree6cde8de031b24166429f61028c0d0441b083e8fb /drivers/iio/accel
parentb101c93ca5e2d4f9b0881c510a3913c9a292b33a (diff)
downloadlinux-6d6c5e56d7718cdb7903d8ad2a1048fbe92afba6.tar.xz
iio: accel: dmard06: Use mod_devicetable.h and drop of_match_ptr macro
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>
Diffstat (limited to 'drivers/iio/accel')
-rw-r--r--drivers/iio/accel/dmard06.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/iio/accel/dmard06.c b/drivers/iio/accel/dmard06.c
index 2bf210fa4ba6..ef89bded7390 100644
--- a/drivers/iio/accel/dmard06.c
+++ b/drivers/iio/accel/dmard06.c
@@ -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,
},
};