Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iio:temperature:tsys01: Drop of_match_ptr protection

This prevents use of this driver with ACPI via PRP0001 and is
an example of an anti pattern I'm trying to remove from IIO.
Hence drop from this driver.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: Ludovic Tancerel <ludovic.tancerel@maplehightech.com>
Link: https://lore.kernel.org/r/20200910173242.621168-22-jic23@kernel.org

+2 -1
+2 -1
drivers/iio/temperature/tsys01.c
··· 13 13 #include <linux/device.h> 14 14 #include <linux/mutex.h> 15 15 #include <linux/module.h> 16 + #include <linux/mod_devicetable.h> 16 17 #include <linux/init.h> 17 18 #include <linux/kernel.h> 18 19 #include <linux/stat.h> ··· 223 222 .id_table = tsys01_id, 224 223 .driver = { 225 224 .name = "tsys01", 226 - .of_match_table = of_match_ptr(tsys01_of_match), 225 + .of_match_table = tsys01_of_match, 227 226 }, 228 227 }; 229 228