Commit b5c35aed authored by Jonathan Cameron's avatar Jonathan Cameron

iio:temperature:tmp007: 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: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
Cc: Manivannan Sadhasivam <manivannanece23@gmail.com>
Link: https://lore.kernel.org/r/20200910173242.621168-23-jic23@kernel.org
parent c5b411bc
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/pm.h> #include <linux/pm.h>
#include <linux/bitops.h> #include <linux/bitops.h>
#include <linux/of.h> #include <linux/mod_devicetable.h>
#include <linux/irq.h> #include <linux/irq.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>
...@@ -578,7 +578,7 @@ MODULE_DEVICE_TABLE(i2c, tmp007_id); ...@@ -578,7 +578,7 @@ MODULE_DEVICE_TABLE(i2c, tmp007_id);
static struct i2c_driver tmp007_driver = { static struct i2c_driver tmp007_driver = {
.driver = { .driver = {
.name = "tmp007", .name = "tmp007",
.of_match_table = of_match_ptr(tmp007_of_match), .of_match_table = tmp007_of_match,
.pm = &tmp007_pm_ops, .pm = &tmp007_pm_ops,
}, },
.probe = tmp007_probe, .probe = tmp007_probe,
......
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