.. | .. |
---|
7 | 7 | */ |
---|
8 | 8 | |
---|
9 | 9 | #include <linux/module.h> |
---|
| 10 | +#include <linux/mod_devicetable.h> |
---|
10 | 11 | #include <linux/mutex.h> |
---|
11 | 12 | #include <linux/init.h> |
---|
12 | 13 | #include <linux/i2c.h> |
---|
.. | .. |
---|
152 | 153 | data->last_update = jiffies - HZ; |
---|
153 | 154 | mutex_init(&data->lock); |
---|
154 | 155 | |
---|
155 | | - indio_dev->dev.parent = &client->dev; |
---|
156 | 156 | indio_dev->info = &ams_iaqcore_info; |
---|
157 | 157 | indio_dev->name = dev_name(&client->dev); |
---|
158 | 158 | indio_dev->modes = INDIO_DIRECT_MODE; |
---|
.. | .. |
---|
178 | 178 | static struct i2c_driver ams_iaqcore_driver = { |
---|
179 | 179 | .driver = { |
---|
180 | 180 | .name = "ams-iaq-core", |
---|
181 | | - .of_match_table = of_match_ptr(ams_iaqcore_dt_ids), |
---|
| 181 | + .of_match_table = ams_iaqcore_dt_ids, |
---|
182 | 182 | }, |
---|
183 | 183 | .probe = ams_iaqcore_probe, |
---|
184 | 184 | .id_table = ams_iaqcore_id, |
---|