Skip to content

Commit

Permalink
[MIPS] Cobalt: Add Qube series front LED support to platform register
Browse files Browse the repository at this point in the history
Add Cobalt Qube series front LED support to platform register.

Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Yoichi Yuasa authored and Ralf Baechle committed Oct 11, 2007
1 parent e86169f commit 9a20375
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion arch/mips/cobalt/led.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
#include <linux/ioport.h>
#include <linux/platform_device.h>

#include <cobalt.h>

static struct resource cobalt_led_resource __initdata = {
.start = 0x1c000000,
.end = 0x1c000000,
Expand All @@ -33,7 +35,11 @@ static __init int cobalt_led_add(void)
struct platform_device *pdev;
int retval;

pdev = platform_device_alloc("cobalt-raq-leds", -1);
if (cobalt_board_id == COBALT_BRD_ID_QUBE1 ||
cobalt_board_id == COBALT_BRD_ID_QUBE2)
pdev = platform_device_alloc("cobalt-qube-leds", -1);
else
pdev = platform_device_alloc("cobalt-raq-leds", -1);

if (!pdev)
return -ENOMEM;
Expand Down

0 comments on commit 9a20375

Please sign in to comment.