forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 cde9070d9970eef1f7ec2360586c802a16230ad8
kernel/arch/powerpc/platforms/44x/ppc476.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * PowerPC 476FPE board specific routines
34 *
....@@ -14,11 +15,6 @@
1415 * Rewritten and ported to the merged powerpc tree:
1516 * Copyright 2007 David Gibson <dwg@au1.ibm.com>, IBM Corporation.
1617 * Copyright © 2011 David Kliekamp IBM Corporation
17
- *
18
- * This program is free software; you can redistribute it and/or modify it
19
- * under the terms of the GNU General Public License as published by the
20
- * Free Software Foundation; either version 2 of the License, or (at your
21
- * option) any later version.
2218 */
2319
2420 #include <linux/init.h>
....@@ -34,6 +30,7 @@
3430 #include <asm/ppc4xx.h>
3531 #include <asm/mpic.h>
3632 #include <asm/mmu.h>
33
+#include <asm/swiotlb.h>
3734
3835 #include <linux/pci.h>
3936 #include <linux/i2c.h>
....@@ -89,8 +86,7 @@
8986 avr_halt_system(AVR_PWRCTL_RESET);
9087 }
9188
92
-static int avr_probe(struct i2c_client *client,
93
- const struct i2c_device_id *id)
89
+static int avr_probe(struct i2c_client *client)
9490 {
9591 avr_i2c_client = client;
9692 ppc_md.restart = avr_reset_system;
....@@ -107,7 +103,7 @@
107103 .driver = {
108104 .name = "akebono-avr",
109105 },
110
- .probe = avr_probe,
106
+ .probe_new = avr_probe,
111107 .id_table = avr_id,
112108 };
113109