linux-mips
[Top] [All Lists]

[PATCH][2/3] add Cobalt Qube series front LED support to platform regist

To: Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH][2/3] add Cobalt Qube series front LED support to platform register
From: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Date: Mon, 1 Oct 2007 19:46:50 +0900
Cc: yoichi_yuasa@tripeaks.co.jp, linux-mips <linux-mips@linux-mips.org>, Richard Purdie <rpurdie@rpsys.net>
In-reply-to: <20071001194505.979185df.yoichi_yuasa@tripeaks.co.jp>
Organization: TriPeaks Corporation
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20071001194505.979185df.yoichi_yuasa@tripeaks.co.jp>
Sender: linux-mips-bounce@linux-mips.org
Add Cobalt Qube series front LED support to platform register.

Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>

diff -pruN -X mips/Documentation/dontdiff mips-orig/arch/mips/cobalt/led.c 
mips/arch/mips/cobalt/led.c
--- mips-orig/arch/mips/cobalt/led.c    2007-09-21 13:05:53.812412000 +0900
+++ mips/arch/mips/cobalt/led.c 2007-09-21 13:20:02.105427000 +0900
@@ -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,
@@ -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;

<Prev in Thread] Current Thread [Next in Thread>