From: Jonathan Cameron Date: Sun, 19 Apr 2020 15:02:06 +0000 (+0100) Subject: iio: light: vl6180: add include of mod_devicetable.h and drop of_match_ptr X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=77baa8d6bced7dbe67c6a9ffae749e5d77b38f80;p=linux.git iio: light: vl6180: add include of mod_devicetable.h and drop of_match_ptr Enables probing via ACPI PRP0001 route and removes an example of an approach we no longer want people to copy. Signed-off-by: Jonathan Cameron Reviewed-by: Alexandru Ardelean --- diff --git a/drivers/iio/light/vl6180.c b/drivers/iio/light/vl6180.c index d9533a76b8f6f..ed7b02765b974 100644 --- a/drivers/iio/light/vl6180.c +++ b/drivers/iio/light/vl6180.c @@ -16,6 +16,7 @@ */ #include +#include #include #include #include @@ -537,7 +538,7 @@ MODULE_DEVICE_TABLE(i2c, vl6180_id); static struct i2c_driver vl6180_driver = { .driver = { .name = VL6180_DRV_NAME, - .of_match_table = of_match_ptr(vl6180_of_match), + .of_match_table = vl6180_of_match, }, .probe = vl6180_probe, .id_table = vl6180_id,