diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/cobalt/led.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/mips/cobalt/led.c b/arch/mips/cobalt/led.c index 8150af3abb8e..1c6ebd468b07 100644 --- a/arch/mips/cobalt/led.c +++ b/arch/mips/cobalt/led.c | |||
@@ -22,6 +22,8 @@ | |||
22 | #include <linux/ioport.h> | 22 | #include <linux/ioport.h> |
23 | #include <linux/platform_device.h> | 23 | #include <linux/platform_device.h> |
24 | 24 | ||
25 | #include <cobalt.h> | ||
26 | |||
25 | static struct resource cobalt_led_resource __initdata = { | 27 | static struct resource cobalt_led_resource __initdata = { |
26 | .start = 0x1c000000, | 28 | .start = 0x1c000000, |
27 | .end = 0x1c000000, | 29 | .end = 0x1c000000, |
@@ -33,7 +35,11 @@ static __init int cobalt_led_add(void) | |||
33 | struct platform_device *pdev; | 35 | struct platform_device *pdev; |
34 | int retval; | 36 | int retval; |
35 | 37 | ||
36 | pdev = platform_device_alloc("cobalt-raq-leds", -1); | 38 | if (cobalt_board_id == COBALT_BRD_ID_QUBE1 || |
39 | cobalt_board_id == COBALT_BRD_ID_QUBE2) | ||
40 | pdev = platform_device_alloc("cobalt-qube-leds", -1); | ||
41 | else | ||
42 | pdev = platform_device_alloc("cobalt-raq-leds", -1); | ||
37 | 43 | ||
38 | if (!pdev) | 44 | if (!pdev) |
39 | return -ENOMEM; | 45 | return -ENOMEM; |