From: Jonathan Cameron Date: Sun, 28 Jun 2020 12:36:45 +0000 (+0100) Subject: iio:adc:sd_adc_modulator: Drop of_match_ptr and tweak includes X-Git-Tag: v5.15~3183^2~85^2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=34eb7366bcb62a71cf5f835c8275b61b14935584;p=platform%2Fkernel%2Flinux-starfive.git iio:adc:sd_adc_modulator: Drop of_match_ptr and tweak includes Dropping of_match_ptr allows this driver to be used with ACPI. The header includes are adjusted to include platform_device.h and mod_devicetable.h instead of OF specific header as nothing from that header itself is actually used. Signed-off-by: Jonathan Cameron Cc: Arnaud Pouliquen Reviewed-by: Andy Shevchenko --- diff --git a/drivers/iio/adc/sd_adc_modulator.c b/drivers/iio/adc/sd_adc_modulator.c index 1d6c246..327cc20 100644 --- a/drivers/iio/adc/sd_adc_modulator.c +++ b/drivers/iio/adc/sd_adc_modulator.c @@ -9,7 +9,8 @@ #include #include #include -#include +#include +#include static const struct iio_info iio_sd_mod_iio_info; @@ -54,7 +55,7 @@ MODULE_DEVICE_TABLE(of, sd_adc_of_match); static struct platform_driver iio_sd_mod_adc = { .driver = { .name = "iio_sd_adc_mod", - .of_match_table = of_match_ptr(sd_adc_of_match), + .of_match_table = sd_adc_of_match, }, .probe = iio_sd_mod_probe, };