]> err.no Git - linux-2.6/commitdiff
[ARM] 4974/1: Drop unused leds-tosa.
authorDmitry Baryshkov <dbaryshkov@gmail.com>
Sat, 12 Apr 2008 20:26:39 +0000 (21:26 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 19 Apr 2008 10:29:09 +0000 (11:29 +0100)
As now tosa uses leds-gpio, drop leds-tosa driver.

Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/leds/Kconfig
drivers/leds/Makefile
drivers/leds/leds-tosa.c [deleted file]

index 859814f62cb07e5f1e14ea71c012a70560e988e9..a3a6199639f986dff5d21bb2742c3ad6277f8614 100644 (file)
@@ -46,13 +46,6 @@ config LEDS_SPITZ
          This option enables support for the LEDs on Sharp Zaurus
          SL-Cxx00 series (C1000, C3000, C3100).
 
-config LEDS_TOSA
-       tristate "LED Support for the Sharp SL-6000 series"
-       depends on LEDS_CLASS && PXA_SHARPSL
-       help
-         This option enables support for the LEDs on Sharp Zaurus
-         SL-6000 series.
-
 config LEDS_S3C24XX
        tristate "LED Support for Samsung S3C24XX GPIO LEDs"
        depends on LEDS_CLASS && ARCH_S3C2410
index 84ced3b1a13d0d85b9082255e38bc7b75d2426fe..e54f42da21a225e3f4e689952d7f25280e0340fc 100644 (file)
@@ -9,7 +9,6 @@ obj-$(CONFIG_LEDS_ATMEL_PWM)            += leds-atmel-pwm.o
 obj-$(CONFIG_LEDS_CORGI)               += leds-corgi.o
 obj-$(CONFIG_LEDS_LOCOMO)              += leds-locomo.o
 obj-$(CONFIG_LEDS_SPITZ)               += leds-spitz.o
-obj-$(CONFIG_LEDS_TOSA)                        += leds-tosa.o
 obj-$(CONFIG_LEDS_S3C24XX)             += leds-s3c24xx.o
 obj-$(CONFIG_LEDS_AMS_DELTA)           += leds-ams-delta.o
 obj-$(CONFIG_LEDS_NET48XX)             += leds-net48xx.o
diff --git a/drivers/leds/leds-tosa.c b/drivers/leds/leds-tosa.c
deleted file mode 100644 (file)
index 9e0a188..0000000
+++ /dev/null
@@ -1,130 +0,0 @@
-/*
- * LED Triggers Core
- *
- * Copyright 2005 Dirk Opfer
- *
- * Author: Dirk Opfer <Dirk@Opfer-Online.de>
- *     based on spitz.c
- *
- * 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/init.h>
-#include <linux/platform_device.h>
-#include <linux/leds.h>
-#include <asm/hardware/scoop.h>
-#include <asm/mach-types.h>
-#include <asm/arch/hardware.h>
-#include <asm/arch/pxa-regs.h>
-#include <asm/arch/tosa.h>
-
-static void tosaled_amber_set(struct led_classdev *led_cdev,
-                               enum led_brightness value)
-{
-       if (value)
-               set_scoop_gpio(&tosascoop_jc_device.dev,
-                               TOSA_SCOOP_JC_CHRG_ERR_LED);
-       else
-               reset_scoop_gpio(&tosascoop_jc_device.dev,
-                               TOSA_SCOOP_JC_CHRG_ERR_LED);
-}
-
-static void tosaled_green_set(struct led_classdev *led_cdev,
-                               enum led_brightness value)
-{
-       if (value)
-               set_scoop_gpio(&tosascoop_jc_device.dev,
-                               TOSA_SCOOP_JC_NOTE_LED);
-       else
-               reset_scoop_gpio(&tosascoop_jc_device.dev,
-                               TOSA_SCOOP_JC_NOTE_LED);
-}
-
-static struct led_classdev tosa_amber_led = {
-       .name                   = "tosa:amber:charge",
-       .default_trigger        = "sharpsl-charge",
-       .brightness_set         = tosaled_amber_set,
-};
-
-static struct led_classdev tosa_green_led = {
-       .name                   = "tosa:green:mail",
-       .default_trigger        = "nand-disk",
-       .brightness_set         = tosaled_green_set,
-};
-
-#ifdef CONFIG_PM
-static int tosaled_suspend(struct platform_device *dev, pm_message_t state)
-{
-#ifdef CONFIG_LEDS_TRIGGERS
-       if (tosa_amber_led.trigger && strcmp(tosa_amber_led.trigger->name,
-                                               "sharpsl-charge"))
-#endif
-               led_classdev_suspend(&tosa_amber_led);
-       led_classdev_suspend(&tosa_green_led);
-       return 0;
-}
-
-static int tosaled_resume(struct platform_device *dev)
-{
-       led_classdev_resume(&tosa_amber_led);
-       led_classdev_resume(&tosa_green_led);
-       return 0;
-}
-#else
-#define tosaled_suspend NULL
-#define tosaled_resume NULL
-#endif
-
-static int tosaled_probe(struct platform_device *pdev)
-{
-       int ret;
-
-       ret = led_classdev_register(&pdev->dev, &tosa_amber_led);
-       if (ret < 0)
-               return ret;
-
-       ret = led_classdev_register(&pdev->dev, &tosa_green_led);
-       if (ret < 0)
-               led_classdev_unregister(&tosa_amber_led);
-
-       return ret;
-}
-
-static int tosaled_remove(struct platform_device *pdev)
-{
-       led_classdev_unregister(&tosa_amber_led);
-       led_classdev_unregister(&tosa_green_led);
-
-       return 0;
-}
-
-static struct platform_driver tosaled_driver = {
-       .probe          = tosaled_probe,
-       .remove         = tosaled_remove,
-       .suspend        = tosaled_suspend,
-       .resume         = tosaled_resume,
-       .driver         = {
-               .name           = "tosa-led",
-       },
-};
-
-static int __init tosaled_init(void)
-{
-       return platform_driver_register(&tosaled_driver);
-}
-
-static void __exit tosaled_exit(void)
-{
-       platform_driver_unregister(&tosaled_driver);
-}
-
-module_init(tosaled_init);
-module_exit(tosaled_exit);
-
-MODULE_AUTHOR("Dirk Opfer <Dirk@Opfer-Online.de>");
-MODULE_DESCRIPTION("Tosa LED driver");
-MODULE_LICENSE("GPL");