forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 1f93a7dfd1f8d5ff7a5c53246c7534fe2332d6f4
kernel/arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c
....@@ -1,14 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Power Management and GPIO expander driver for MPC8349E-mITX-compatible MCU
34 *
45 * Copyright (c) 2008 MontaVista Software, Inc.
56 *
67 * Author: Anton Vorontsov <avorontsov@ru.mvista.com>
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation; either version 2 of the License, or
11
- * (at your option) any later version.
128 */
139
1410 #include <linux/kernel.h>
....@@ -146,7 +142,7 @@
146142 return 0;
147143 }
148144
149
-static int mcu_probe(struct i2c_client *client, const struct i2c_device_id *id)
145
+static int mcu_probe(struct i2c_client *client)
150146 {
151147 struct mcu *mcu;
152148 int ret;
....@@ -225,7 +221,7 @@
225221 .name = "mcu-mpc8349emitx",
226222 .of_match_table = mcu_of_match_table,
227223 },
228
- .probe = mcu_probe,
224
+ .probe_new = mcu_probe,
229225 .remove = mcu_remove,
230226 .id_table = mcu_ids,
231227 };