diff options
author | David Woodhouse <dwmw2@infradead.org> | 2007-10-13 17:58:23 +0400 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2007-10-13 17:58:23 +0400 |
commit | ebf8889bd1fe3615991ff4494635d237280652a2 (patch) | |
tree | 10fb735717122bbb86474339eac07f26e7ccdf40 /drivers/leds/leds-cobalt.c | |
parent | b160292cc216a50fd0cd386b0bda2cd48352c73b (diff) | |
parent | 752097cec53eea111d087c545179b421e2bde98a (diff) | |
download | linux-ebf8889bd1fe3615991ff4494635d237280652a2.tar.xz |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'drivers/leds/leds-cobalt.c')
-rw-r--r-- | drivers/leds/leds-cobalt.c | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/drivers/leds/leds-cobalt.c b/drivers/leds/leds-cobalt.c deleted file mode 100644 index d16439ce5da7..000000000000 --- a/drivers/leds/leds-cobalt.c +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2006 - Florian Fainelli <florian@openwrt.org> - * - * Control the Cobalt Qube/RaQ front LED - */ - -#include <linux/module.h> -#include <linux/types.h> -#include <linux/kernel.h> -#include <linux/device.h> -#include <linux/leds.h> -#include <asm/mach-cobalt/cobalt.h> - -static void cobalt_led_set(struct led_classdev *led_cdev, enum led_brightness brightness) -{ - if (brightness) - COBALT_LED_PORT = COBALT_LED_BAR_LEFT | COBALT_LED_BAR_RIGHT; - else - COBALT_LED_PORT = 0; -} - -static struct led_classdev cobalt_led = { - .name = "cobalt-front-led", - .brightness_set = cobalt_led_set, - .default_trigger = "ide-disk", -}; - -static int __init cobalt_led_init(void) -{ - return led_classdev_register(NULL, &cobalt_led); -} - -static void __exit cobalt_led_exit(void) -{ - led_classdev_unregister(&cobalt_led); -} - -module_init(cobalt_led_init); -module_exit(cobalt_led_exit); - -MODULE_LICENSE("GPL"); -MODULE_DESCRIPTION("Front LED support for Cobalt Server"); -MODULE_AUTHOR("Florian Fainelli <florian@openwrt.org>"); |