From 77baa8d6bced7dbe67c6a9ffae749e5d77b38f80 Mon Sep 17 00:00:00 2001 From: Jonathan Cameron Date: Sun, 19 Apr 2020 16:02:06 +0100 Subject: [PATCH] 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 --- drivers/iio/light/vl6180.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/iio/light/vl6180.c b/drivers/iio/light/vl6180.c index d9533a7..ed7b027 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, -- 2.7.4