forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/iio/adc/ti-adc161s626.c
....@@ -11,6 +11,7 @@
1111 */
1212
1313 #include <linux/module.h>
14
+#include <linux/mod_devicetable.h>
1415 #include <linux/init.h>
1516 #include <linux/err.h>
1617 #include <linux/spi/spi.h>
....@@ -179,8 +180,6 @@
179180 return -ENOMEM;
180181
181182 indio_dev->info = &ti_adc_info;
182
- indio_dev->dev.parent = &spi->dev;
183
- indio_dev->dev.of_node = spi->dev.of_node;
184183 indio_dev->name = TI_ADC_DRV_NAME;
185184 indio_dev->modes = INDIO_DIRECT_MODE;
186185 spi_set_drvdata(spi, indio_dev);
....@@ -259,7 +258,7 @@
259258 static struct spi_driver ti_adc_driver = {
260259 .driver = {
261260 .name = TI_ADC_DRV_NAME,
262
- .of_match_table = of_match_ptr(ti_adc_dt_ids),
261
+ .of_match_table = ti_adc_dt_ids,
263262 },
264263 .probe = ti_adc_probe,
265264 .remove = ti_adc_remove,