Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=9a203755ca392587953be2b5cf235800dcb27d8e
Commit:     9a203755ca392587953be2b5cf235800dcb27d8e
Parent:     e86169fffedc2f461be6f70817ae5ab201c12fd5
Author:     Yoichi Yuasa <[EMAIL PROTECTED]>
AuthorDate: Mon Oct 1 19:46:50 2007 +0900
Committer:  Ralf Baechle <[EMAIL PROTECTED]>
CommitDate: Thu Oct 11 23:46:13 2007 +0100

    [MIPS] Cobalt: Add Qube series front LED support to platform register
    
    Add Cobalt Qube series front LED support to platform register.
    
    Signed-off-by: Yoichi Yuasa <[EMAIL PROTECTED]>
    Signed-off-by: Ralf Baechle <[EMAIL PROTECTED]>
---
 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 8150af3..1c6ebd4 100644
--- a/arch/mips/cobalt/led.c
+++ b/arch/mips/cobalt/led.c
@@ -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;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to