From: Jonathan Cameron Date: Sun, 28 Jun 2020 12:36:51 +0000 (+0100) Subject: iio:adc:ti-adc161s626: Drop of_match_ptr protection. X-Git-Tag: v5.15~3183^2~85^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a6b40706ffeee366354ac0b7809a1a87c7973a02;p=platform%2Fkernel%2Flinux-starfive.git iio:adc:ti-adc161s626: Drop of_match_ptr protection. Dropping this allows use of ACPI PRP0001. I'm also looking to drop all of_match_ptr use in IIO in order to avoid it getting cut and paste into new drivers in the future. Also add a direct include of mod_devicetable.h to reflect the use of struct of_device_id. Signed-off-by: Jonathan Cameron Acked-by: Matt Ranostay Reviewed-by: Andy Shevchenko --- diff --git a/drivers/iio/adc/ti-adc161s626.c b/drivers/iio/adc/ti-adc161s626.c index f27ca3161..607791f 100644 --- a/drivers/iio/adc/ti-adc161s626.c +++ b/drivers/iio/adc/ti-adc161s626.c @@ -11,6 +11,7 @@ */ #include +#include #include #include #include @@ -257,7 +258,7 @@ MODULE_DEVICE_TABLE(spi, ti_adc_id); static struct spi_driver ti_adc_driver = { .driver = { .name = TI_ADC_DRV_NAME, - .of_match_table = of_match_ptr(ti_adc_dt_ids), + .of_match_table = ti_adc_dt_ids, }, .probe = ti_adc_probe, .remove = ti_adc_remove,