소스 검색

[ARM] 5267/1: [AT91] Name conflict in mach-at91/leds.c

The name of the platform device 'at91_pwm_leds' conflicts with the
function at91_pwm_leds().
So rename the device 'at91_pwm_leds_device' to be more specific.
Similarly rename 'at91_gpio_leds_device' for consistency.

Signed-off-by: Andrew Victor <linux@maxim.org.za>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Andrew Victor 16 년 전
부모
커밋
791ccf2e4d
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      arch/arm/mach-at91/leds.c

+ 4 - 4
arch/arm/mach-at91/leds.c

@@ -28,7 +28,7 @@
 
 
 static struct gpio_led_platform_data led_data;
 static struct gpio_led_platform_data led_data;
 
 
-static struct platform_device at91_leds = {
+static struct platform_device at91_gpio_leds_device = {
 	.name			= "leds-gpio",
 	.name			= "leds-gpio",
 	.id			= -1,
 	.id			= -1,
 	.dev.platform_data	= &led_data,
 	.dev.platform_data	= &led_data,
@@ -46,7 +46,7 @@ void __init at91_gpio_leds(struct gpio_led *leds, int nr)
 
 
 	led_data.leds = leds;
 	led_data.leds = leds;
 	led_data.num_leds = nr;
 	led_data.num_leds = nr;
-	platform_device_register(&at91_leds);
+	platform_device_register(&at91_gpio_leds_device);
 }
 }
 
 
 #else
 #else
@@ -64,7 +64,7 @@ void __init at91_gpio_leds(struct gpio_led *leds, int nr) {}
 
 
 static struct gpio_led_platform_data pwm_led_data;
 static struct gpio_led_platform_data pwm_led_data;
 
 
-static struct platform_device at91_pwm_leds = {
+static struct platform_device at91_pwm_leds_device = {
 	.name			= "leds-atmel-pwm",
 	.name			= "leds-atmel-pwm",
 	.id			= -1,
 	.id			= -1,
 	.dev.platform_data	= &pwm_led_data,
 	.dev.platform_data	= &pwm_led_data,
@@ -85,7 +85,7 @@ void __init at91_pwm_leds(struct gpio_led *leds, int nr)
 	pwm_led_data.num_leds = nr;
 	pwm_led_data.num_leds = nr;
 
 
 	at91_add_device_pwm(pwm_mask);
 	at91_add_device_pwm(pwm_mask);
-	platform_device_register(&at91_pwm_leds);
+	platform_device_register(&at91_pwm_leds_device);
 }
 }
 #else
 #else
 void __init at91_pwm_leds(struct gpio_led *leds, int nr){}
 void __init at91_pwm_leds(struct gpio_led *leds, int nr){}