| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * et8ek8_driver.c |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 11 | 12 | * |
|---|
| 12 | 13 | * This driver is based on the Micron MT9T012 camera imager driver |
|---|
| 13 | 14 | * (C) Texas Instruments. |
|---|
| 14 | | - * |
|---|
| 15 | | - * This program is free software; you can redistribute it and/or |
|---|
| 16 | | - * modify it under the terms of the GNU General Public License |
|---|
| 17 | | - * version 2 as published by the Free Software Foundation. |
|---|
| 18 | | - * |
|---|
| 19 | | - * This program is distributed in the hope that it will be useful, but |
|---|
| 20 | | - * WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 21 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|---|
| 22 | | - * General Public License for more details. |
|---|
| 23 | 15 | */ |
|---|
| 24 | 16 | |
|---|
| 25 | 17 | #include <linux/clk.h> |
|---|
| .. | .. |
|---|
| 1404 | 1396 | return __et8ek8_set_power(sensor, true); |
|---|
| 1405 | 1397 | } |
|---|
| 1406 | 1398 | |
|---|
| 1407 | | -static int et8ek8_probe(struct i2c_client *client, |
|---|
| 1408 | | - const struct i2c_device_id *devid) |
|---|
| 1399 | +static int et8ek8_probe(struct i2c_client *client) |
|---|
| 1409 | 1400 | { |
|---|
| 1410 | 1401 | struct et8ek8_sensor *sensor; |
|---|
| 1411 | 1402 | struct device *dev = &client->dev; |
|---|
| .. | .. |
|---|
| 1512 | 1503 | .pm = &et8ek8_pm_ops, |
|---|
| 1513 | 1504 | .of_match_table = et8ek8_of_table, |
|---|
| 1514 | 1505 | }, |
|---|
| 1515 | | - .probe = et8ek8_probe, |
|---|
| 1506 | + .probe_new = et8ek8_probe, |
|---|
| 1516 | 1507 | .remove = __exit_p(et8ek8_remove), |
|---|
| 1517 | 1508 | .id_table = et8ek8_id_table, |
|---|
| 1518 | 1509 | }; |
|---|