Commit 9a203755 authored by Yoichi Yuasa's avatar Yoichi Yuasa Committed by Ralf Baechle

[MIPS] Cobalt: Add Qube series front LED support to platform register

Add Cobalt Qube series front LED support to platform register.
Signed-off-by: default avatarYoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent e86169ff
...@@ -22,6 +22,8 @@ ...@@ -22,6 +22,8 @@
#include <linux/ioport.h> #include <linux/ioport.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <cobalt.h>
static struct resource cobalt_led_resource __initdata = { static struct resource cobalt_led_resource __initdata = {
.start = 0x1c000000, .start = 0x1c000000,
.end = 0x1c000000, .end = 0x1c000000,
...@@ -33,7 +35,11 @@ static __init int cobalt_led_add(void) ...@@ -33,7 +35,11 @@ static __init int cobalt_led_add(void)
struct platform_device *pdev; struct platform_device *pdev;
int retval; 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) if (!pdev)
return -ENOMEM; return -ENOMEM;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment