.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * IIO driver for Domintech DMARD06 accelerometer |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2016 Aleksei Mamlin <mamlinav@gmail.com> |
---|
5 | | - * |
---|
6 | | - * This program is free software; you can redistribute it and/or modify it |
---|
7 | | - * under the terms and conditions of the GNU General Public License, |
---|
8 | | - * version 2, as published by the Free Software Foundation. |
---|
9 | 6 | */ |
---|
10 | 7 | |
---|
11 | 8 | #include <linux/module.h> |
---|
| 9 | +#include <linux/mod_devicetable.h> |
---|
12 | 10 | #include <linux/i2c.h> |
---|
13 | 11 | #include <linux/iio/iio.h> |
---|
14 | 12 | |
---|
.. | .. |
---|
163 | 161 | dmard06->chip_id = ret; |
---|
164 | 162 | |
---|
165 | 163 | i2c_set_clientdata(client, indio_dev); |
---|
166 | | - indio_dev->dev.parent = &client->dev; |
---|
167 | 164 | indio_dev->name = DMARD06_DRV_NAME; |
---|
168 | 165 | indio_dev->modes = INDIO_DIRECT_MODE; |
---|
169 | 166 | indio_dev->channels = dmard06_channels; |
---|
.. | .. |
---|
229 | 226 | .id_table = dmard06_id, |
---|
230 | 227 | .driver = { |
---|
231 | 228 | .name = DMARD06_DRV_NAME, |
---|
232 | | - .of_match_table = of_match_ptr(dmard06_of_match), |
---|
| 229 | + .of_match_table = dmard06_of_match, |
---|
233 | 230 | .pm = DMARD06_PM_OPS, |
---|
234 | 231 | }, |
---|
235 | 232 | }; |
---|