Commit eb25d0aa authored by Jonathan Cameron's avatar Jonathan Cameron

iio:pressure:icp10100: Drop of_match_ptr and CONFIG_OF protections

These prevents use of this driver with ACPI via PRP0001 and are
an example of an anti pattern I'm trying to remove from IIO.
Hence drop them from this driver.
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
Cc: Jean-Baptiste Maneyrol <jmaneyrol@invensense.com>
Link: https://lore.kernel.org/r/20200910173242.621168-18-jic23@kernel.org
parent 4c55fb8c
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
#include <linux/device.h> #include <linux/device.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/mod_devicetable.h>
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/pm_runtime.h> #include <linux/pm_runtime.h>
#include <linux/crc8.h> #include <linux/crc8.h>
...@@ -645,7 +646,7 @@ static struct i2c_driver icp10100_driver = { ...@@ -645,7 +646,7 @@ static struct i2c_driver icp10100_driver = {
.driver = { .driver = {
.name = "icp10100", .name = "icp10100",
.pm = &icp10100_pm, .pm = &icp10100_pm,
.of_match_table = of_match_ptr(icp10100_of_match), .of_match_table = icp10100_of_match,
}, },
.probe = icp10100_probe, .probe = icp10100_probe,
.id_table = icp10100_id, .id_table = icp10100_id,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment