hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/arch/sh/kernel/cpu/sh4/setup-sh7750.c
....@@ -1,12 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0
12 /*
23 * SH7091/SH7750/SH7750S/SH7750R/SH7751/SH7751R Setup
34 *
45 * Copyright (C) 2006 Paul Mundt
56 * Copyright (C) 2006 Jamie Lenehan
6
- *
7
- * This file is subject to the terms and conditions of the GNU General Public
8
- * License. See the file "COPYING" in the main directory of this archive
9
- * for more details.
107 */
118 #include <linux/platform_device.h>
129 #include <linux/init.h>
....@@ -16,6 +13,7 @@
1613 #include <linux/sh_intc.h>
1714 #include <linux/serial_sci.h>
1815 #include <generated/machtypes.h>
16
+#include <asm/platform_early.h>
1917
2018 static struct resource rtc_resources[] = {
2119 [0] = {
....@@ -164,15 +162,15 @@
164162 if (mach_is_rts7751r2d()) {
165163 scif_platform_data.scscr |= SCSCR_CKE1;
166164 dev[0] = &scif_device;
167
- early_platform_add_devices(dev, 1);
165
+ sh_early_platform_add_devices(dev, 1);
168166 } else {
169167 dev[0] = &sci_device;
170
- early_platform_add_devices(dev, 1);
168
+ sh_early_platform_add_devices(dev, 1);
171169 dev[0] = &scif_device;
172
- early_platform_add_devices(dev, 1);
170
+ sh_early_platform_add_devices(dev, 1);
173171 }
174172
175
- early_platform_add_devices(sh7750_early_devices,
173
+ sh_early_platform_add_devices(sh7750_early_devices,
176174 ARRAY_SIZE(sh7750_early_devices));
177175 }
178176