From: Jonathan Cameron Date: Sun, 28 Jun 2020 12:36:35 +0000 (+0100) Subject: iio:adc:hi8435: Drop of_match_ptr protection. X-Git-Tag: v5.9-rc1~119^2~85^2~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8e6ae5a3346821acf7ac0b0dedf494e29f9496f;p=thirdparty%2Fkernel%2Fstable.git iio:adc:hi8435: Drop of_match_ptr protection. Allows use of ACPI with PRP0001 and is generally something we are trying to avoid having people cut and paste into new drivers without thinking about it. Signed-off-by: Jonathan Cameron Cc: Vladimir Barinov Cc: Nikita Yushchenko Reviewed-by: Andy Shevchenko --- diff --git a/drivers/iio/adc/hi8435.c b/drivers/iio/adc/hi8435.c index 235374ec7babe..074c30970465a 100644 --- a/drivers/iio/adc/hi8435.c +++ b/drivers/iio/adc/hi8435.c @@ -15,8 +15,7 @@ #include #include #include -#include -#include +#include #include #include @@ -539,7 +538,7 @@ MODULE_DEVICE_TABLE(spi, hi8435_id); static struct spi_driver hi8435_driver = { .driver = { .name = DRV_NAME, - .of_match_table = of_match_ptr(hi8435_dt_ids), + .of_match_table = hi8435_dt_ids, }, .probe = hi8435_probe, .id_table = hi8435_id,