| .. | .. |
|---|
| 11 | 11 | */ |
|---|
| 12 | 12 | |
|---|
| 13 | 13 | #include <linux/module.h> |
|---|
| 14 | +#include <linux/mod_devicetable.h> |
|---|
| 14 | 15 | #include <linux/init.h> |
|---|
| 15 | 16 | #include <linux/err.h> |
|---|
| 16 | 17 | #include <linux/spi/spi.h> |
|---|
| .. | .. |
|---|
| 179 | 180 | return -ENOMEM; |
|---|
| 180 | 181 | |
|---|
| 181 | 182 | indio_dev->info = &ti_adc_info; |
|---|
| 182 | | - indio_dev->dev.parent = &spi->dev; |
|---|
| 183 | | - indio_dev->dev.of_node = spi->dev.of_node; |
|---|
| 184 | 183 | indio_dev->name = TI_ADC_DRV_NAME; |
|---|
| 185 | 184 | indio_dev->modes = INDIO_DIRECT_MODE; |
|---|
| 186 | 185 | spi_set_drvdata(spi, indio_dev); |
|---|
| .. | .. |
|---|
| 259 | 258 | static struct spi_driver ti_adc_driver = { |
|---|
| 260 | 259 | .driver = { |
|---|
| 261 | 260 | .name = TI_ADC_DRV_NAME, |
|---|
| 262 | | - .of_match_table = of_match_ptr(ti_adc_dt_ids), |
|---|
| 261 | + .of_match_table = ti_adc_dt_ids, |
|---|
| 263 | 262 | }, |
|---|
| 264 | 263 | .probe = ti_adc_probe, |
|---|
| 265 | 264 | .remove = ti_adc_remove, |
|---|