forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/arch/sh/kernel/cpu/sh4a/setup-sh7770.c
....@@ -1,11 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0
12 /*
23 * SH7770 Setup
34 *
45 * Copyright (C) 2006 - 2008 Paul Mundt
5
- *
6
- * This file is subject to the terms and conditions of the GNU General Public
7
- * License. See the file "COPYING" in the main directory of this archive
8
- * for more details.
96 */
107 #include <linux/platform_device.h>
118 #include <linux/init.h>
....@@ -14,6 +11,7 @@
1411 #include <linux/sh_timer.h>
1512 #include <linux/sh_intc.h>
1613 #include <linux/io.h>
14
+#include <asm/platform_early.h>
1715
1816 static struct plat_sci_port scif0_platform_data = {
1917 .scscr = SCSCR_REIE | SCSCR_TOIE,
....@@ -319,7 +317,7 @@
319317
320318 void __init plat_early_device_setup(void)
321319 {
322
- early_platform_add_devices(sh7770_early_devices,
320
+ sh_early_platform_add_devices(sh7770_early_devices,
323321 ARRAY_SIZE(sh7770_early_devices));
324322 }
325323