From: Nishant Malpani Date: Fri, 24 Apr 2020 22:44:37 +0000 (+0530) Subject: iio: accel: dmard06: Use mod_devicetable.h and drop of_match_ptr macro X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=6d6c5e56d7718cdb7903d8ad2a1048fbe92afba6;p=linux.git 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 Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/accel/dmard06.c b/drivers/iio/accel/dmard06.c index 2bf210fa4ba62..ef89bded7390b 100644 --- a/drivers/iio/accel/dmard06.c +++ b/drivers/iio/accel/dmard06.c @@ -6,6 +6,7 @@ */ #include +#include #include #include @@ -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, }, };