aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/rdc-2.6/files/drivers/leds/leds-rdc3211.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-09-06 16:27:37 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-09-06 16:27:37 +0000
commit92558d67a463bfbb351d30e28648de03b635f024 (patch)
treea5d41b991a151e72663527a96fbc6c494565d65c /target/linux/rdc-2.6/files/drivers/leds/leds-rdc3211.c
parente1dbce411cd2a3a067f387cee011cd889486a07d (diff)
downloadmaster-187ad058-92558d67a463bfbb351d30e28648de03b635f024.tar.gz
master-187ad058-92558d67a463bfbb351d30e28648de03b635f024.tar.bz2
master-187ad058-92558d67a463bfbb351d30e28648de03b635f024.zip
strip the kernel version suffix from target directories, except for brcm-2.4 (the -2.4 will be included in the board name here). CONFIG_LINUX_<ver>_<board> becomes CONFIG_TARGET_<board>, same for profiles.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8653 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/rdc-2.6/files/drivers/leds/leds-rdc3211.c')
-rw-r--r--target/linux/rdc-2.6/files/drivers/leds/leds-rdc3211.c71
1 files changed, 0 insertions, 71 deletions
diff --git a/target/linux/rdc-2.6/files/drivers/leds/leds-rdc3211.c b/target/linux/rdc-2.6/files/drivers/leds/leds-rdc3211.c
deleted file mode 100644
index ae068af14f..0000000000
--- a/target/linux/rdc-2.6/files/drivers/leds/leds-rdc3211.c
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
- * LED driver for RDC3211 boards
- *
- * Copyright 2007 Florian Fainelli <florian@openwrt.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- *
- */
-
-#include <linux/kernel.h>
-#include <linux/module.h>
-#include <linux/init.h>
-#include <linux/platform_device.h>
-#include <linux/leds.h>
-#include <linux/err.h>
-
-#include <asm/gpio.h>
-
-static void rdc321x_led_set(struct led_classdev *led_cdev, enum led_brightness brightness)
-{
- gpio_set_value(1, brightness ? 1 : 0);
-}
-
-/* The DMZ led is at GPIO line 1 */
-static struct led_classdev rdc321x_dmz_led = {
- .name = "rdc321x:dmz",
- .brightness_set = rdc321x_led_set,
-};
-
-static int rdc321x_leds_probe(struct platform_device *pdev)
-{
- return led_classdev_register(&pdev->dev, &rdc321x_dmz_led);
-}
-
-static int rdc321x_leds_remove(struct platform_device *pdev)
-{
- led_classdev_unregister(&rdc321x_dmz_led);
- return 0;
-}
-
-static struct platform_driver rdc321x_leds_driver = {
- .probe = rdc321x_leds_probe,
- .remove = rdc321x_leds_remove,
- .driver = {
- .name = "rdc321x-leds",
- .owner = THIS_MODULE,
- }
-};
-
-static int __init rdc321x_leds_init(void)
-{
- int ret;
-
- ret = platform_driver_register(&rdc321x_leds_driver);
-
- return ret;
-}
-
-static void __exit rdc321x_leds_exit(void)
-{
- platform_driver_unregister(&rdc321x_leds_driver);
-}
-
-module_init(rdc321x_leds_init);
-module_exit(rdc321x_leds_exit);
-
-MODULE_AUTHOR("Florian Fainelli <florian@openwrt.org>");
-MODULE_DESCRIPTION("RDC321x LED driver");
-MODULE_LICENSE("GPL");