.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * 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. |
---|
7 | 4 | * |
---|
8 | 5 | * Apr-2003 : Removed some old PDA crud [FB] |
---|
9 | 6 | * Oct-2003 : Added uart2 resource [FB] |
---|
.. | .. |
---|
89 | 86 | .num_leds = ARRAY_SIZE(cerf_gpio_leds), |
---|
90 | 87 | }; |
---|
91 | 88 | |
---|
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 | | - |
---|
101 | 89 | static struct platform_device *cerf_devices[] __initdata = { |
---|
102 | 90 | &cerfuart2_device, |
---|
103 | | - &cerf_leds, |
---|
104 | 91 | }; |
---|
105 | 92 | |
---|
106 | 93 | #ifdef CONFIG_SA1100_CERF_FLASH_32MB |
---|
.. | .. |
---|
176 | 163 | { |
---|
177 | 164 | sa11x0_ppc_configure_mcp(); |
---|
178 | 165 | platform_add_devices(cerf_devices, ARRAY_SIZE(cerf_devices)); |
---|
| 166 | + gpio_led_register_device(-1, &cerf_gpio_led_info); |
---|
179 | 167 | sa11x0_register_mtd(&cerf_flash_data, &cerf_flash_resource, 1); |
---|
180 | 168 | sa11x0_register_mcp(&cerf_mcp_data); |
---|
181 | 169 | sa11x0_register_pcmcia(1, &cerf_cf_gpio_table); |
---|