hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/media/i2c/et8ek8/et8ek8_driver.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * et8ek8_driver.c
34 *
....@@ -11,15 +12,6 @@
1112 *
1213 * This driver is based on the Micron MT9T012 camera imager driver
1314 * (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.
2315 */
2416
2517 #include <linux/clk.h>
....@@ -1404,8 +1396,7 @@
14041396 return __et8ek8_set_power(sensor, true);
14051397 }
14061398
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)
14091400 {
14101401 struct et8ek8_sensor *sensor;
14111402 struct device *dev = &client->dev;
....@@ -1512,7 +1503,7 @@
15121503 .pm = &et8ek8_pm_ops,
15131504 .of_match_table = et8ek8_of_table,
15141505 },
1515
- .probe = et8ek8_probe,
1506
+ .probe_new = et8ek8_probe,
15161507 .remove = __exit_p(et8ek8_remove),
15171508 .id_table = et8ek8_id_table,
15181509 };