.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * g760a - Driver for the Global Mixed-mode Technology Inc. G760A |
---|
3 | 4 | * fan speed PWM controller chip |
---|
.. | .. |
---|
6 | 7 | * |
---|
7 | 8 | * Complete datasheet is available at GMT's website: |
---|
8 | 9 | * http://www.gmt.com.tw/product/datasheet/EDS-760A.pdf |
---|
9 | | - * |
---|
10 | | - * This program is free software; you can redistribute it and/or modify |
---|
11 | | - * it under the terms of the GNU General Public License as published by |
---|
12 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
13 | | - * (at your option) any later version. |
---|
14 | 10 | */ |
---|
15 | 11 | |
---|
16 | 12 | #include <linux/module.h> |
---|
.. | .. |
---|
174 | 170 | * new-style driver model code |
---|
175 | 171 | */ |
---|
176 | 172 | |
---|
177 | | -static int g760a_probe(struct i2c_client *client, |
---|
178 | | - const struct i2c_device_id *id) |
---|
| 173 | +static int g760a_probe(struct i2c_client *client) |
---|
179 | 174 | { |
---|
180 | 175 | struct device *dev = &client->dev; |
---|
181 | 176 | struct g760a_data *data; |
---|
.. | .. |
---|
211 | 206 | .driver = { |
---|
212 | 207 | .name = "g760a", |
---|
213 | 208 | }, |
---|
214 | | - .probe = g760a_probe, |
---|
| 209 | + .probe_new = g760a_probe, |
---|
215 | 210 | .id_table = g760a_id, |
---|
216 | 211 | }; |
---|
217 | 212 | |
---|