forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/arch/arm/mach-sa1100/cerf.c
....@@ -1,9 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * linux/arch/arm/mach-sa1100/cerf.c
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License version 2 as
6
- * published by the Free Software Foundation.
74 *
85 * Apr-2003 : Removed some old PDA crud [FB]
96 * Oct-2003 : Added uart2 resource [FB]
....@@ -89,18 +86,8 @@
8986 .num_leds = ARRAY_SIZE(cerf_gpio_leds),
9087 };
9188
92
-static struct platform_device cerf_leds = {
93
- .name = "leds-gpio",
94
- .id = -1,
95
- .dev = {
96
- .platform_data = &cerf_gpio_led_info,
97
- }
98
-};
99
-
100
-
10189 static struct platform_device *cerf_devices[] __initdata = {
10290 &cerfuart2_device,
103
- &cerf_leds,
10491 };
10592
10693 #ifdef CONFIG_SA1100_CERF_FLASH_32MB
....@@ -176,6 +163,7 @@
176163 {
177164 sa11x0_ppc_configure_mcp();
178165 platform_add_devices(cerf_devices, ARRAY_SIZE(cerf_devices));
166
+ gpio_led_register_device(-1, &cerf_gpio_led_info);
179167 sa11x0_register_mtd(&cerf_flash_data, &cerf_flash_resource, 1);
180168 sa11x0_register_mcp(&cerf_mcp_data);
181169 sa11x0_register_pcmcia(1, &cerf_cf_gpio_table);