forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-09 958e46acc8e900e8569dd467c1af9b8d2d019394
kernel/arch/sh/kernel/cpu/sh4a/setup-sh7757.c
....@@ -1,13 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0
12 /*
23 * SH7757 Setup
34 *
45 * Copyright (C) 2009, 2011 Renesas Solutions Corp.
56 *
67 * based on setup-sh7785.c : Copyright (C) 2007 Paul Mundt
7
- *
8
- * This file is subject to the terms and conditions of the GNU General Public
9
- * License. See the file "COPYING" in the main directory of this archive
10
- * for more details.
118 */
129 #include <linux/platform_device.h>
1310 #include <linux/init.h>
....@@ -22,6 +19,7 @@
2219 #include <linux/usb/ohci_pdriver.h>
2320 #include <cpu/dma-register.h>
2421 #include <cpu/sh7757.h>
22
+#include <asm/platform_early.h>
2523
2624 static struct plat_sci_port scif2_platform_data = {
2725 .scscr = SCSCR_REIE,
....@@ -770,7 +768,7 @@
770768
771769 void __init plat_early_device_setup(void)
772770 {
773
- early_platform_add_devices(sh7757_early_devices,
771
+ sh_early_platform_add_devices(sh7757_early_devices,
774772 ARRAY_SIZE(sh7757_early_devices));
775773 }
776774