diff mbox

[05/17] mach-ks8695: remove leds driver, since nobody use it

Message ID 1309955687-19365-6-git-send-email-bryan.wu@canonical.com (mailing list archive)
State New, archived
Headers show

Commit Message

Bryan Wu July 6, 2011, 12:34 p.m. UTC
Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
---
 arch/arm/mach-ks8695/Makefile               |    3 -
 arch/arm/mach-ks8695/devices.c              |   21 ------
 arch/arm/mach-ks8695/include/mach/devices.h |    5 --
 arch/arm/mach-ks8695/leds.c                 |   93 ---------------------------
 4 files changed, 0 insertions(+), 122 deletions(-)
 delete mode 100644 arch/arm/mach-ks8695/leds.c

Comments

Andrew Victor July 8, 2011, 8:23 p.m. UTC | #1
> Signed-off-by: Bryan Wu <bryan.wu@canonical.com>

As the original author of this code.

Acked-by: Andrew Victor <linux@maxim.org.za>
Sergei Shtylyov July 11, 2011, 11:11 a.m. UTC | #2
Hello.

On 09-07-2011 0:23, Andrew Victor wrote:

>> Signed-off-by: Bryan Wu<bryan.wu@canonical.com>

> As the original author of this code.

> Acked-by: Andrew Victor <linux@maxim.org.za>

    If you're the original author, shouldn't there be:

From: Andrew Victor <linux@maxim.org.za>

WBR, Sergei
Bryan Wu July 11, 2011, 1:48 p.m. UTC | #3
On Mon, Jul 11, 2011 at 7:11 PM, Sergei Shtylyov <sshtylyov@mvista.com> wrote:
> Hello.
>
> On 09-07-2011 0:23, Andrew Victor wrote:
>
>>> Signed-off-by: Bryan Wu<bryan.wu@canonical.com>
>
>> As the original author of this code.
>
>> Acked-by: Andrew Victor <linux@maxim.org.za>
>
>   If you're the original author, shouldn't there be:
>
> From: Andrew Victor <linux@maxim.org.za>
>

No problem, I will change that.

Thanks,
Nicolas Pitre July 11, 2011, 2 p.m. UTC | #4
On Mon, 11 Jul 2011, Bryan Wu wrote:

> On Mon, Jul 11, 2011 at 7:11 PM, Sergei Shtylyov <sshtylyov@mvista.com> wrote:
> > Hello.
> >
> > On 09-07-2011 0:23, Andrew Victor wrote:
> >
> >>> Signed-off-by: Bryan Wu<bryan.wu@canonical.com>
> >
> >> As the original author of this code.
> >
> >> Acked-by: Andrew Victor <linux@maxim.org.za>
> >
> >   If you're the original author, shouldn't there be:
> >
> > From: Andrew Victor <linux@maxim.org.za>
> >
> 
> No problem, I will change that.

Beware.  Is Andrew Victor the original author of the code being removed 
here and in this case he's indicating his agreement to the removal of 
his code, or he is the one actually responsible for the removal?  If the 
former then it is wrong to put a "From" with his name and the 
"Acked-by:" is the right thing to do.


Nicolas
Bryan Wu July 11, 2011, 2:07 p.m. UTC | #5
On Mon, Jul 11, 2011 at 10:00 PM, Nicolas Pitre
<nicolas.pitre@linaro.org> wrote:
> On Mon, 11 Jul 2011, Bryan Wu wrote:
>
>> On Mon, Jul 11, 2011 at 7:11 PM, Sergei Shtylyov <sshtylyov@mvista.com> wrote:
>> > Hello.
>> >
>> > On 09-07-2011 0:23, Andrew Victor wrote:
>> >
>> >>> Signed-off-by: Bryan Wu<bryan.wu@canonical.com>
>> >
>> >> As the original author of this code.
>> >
>> >> Acked-by: Andrew Victor <linux@maxim.org.za>
>> >
>> >   If you're the original author, shouldn't there be:
>> >
>> > From: Andrew Victor <linux@maxim.org.za>
>> >
>>
>> No problem, I will change that.
>
> Beware.  Is Andrew Victor the original author of the code being removed
> here and in this case he's indicating his agreement to the removal of
> his code, or he is the one actually responsible for the removal?  If the
> former then it is wrong to put a "From" with his name and the
> "Acked-by:" is the right thing to do.
>

Right, I was confused by the email. I prepared the removing patch and
Andrew said "Acked-by".
Andrew, is that what you want?

Thanks,
Andrew Victor July 11, 2011, 2:30 p.m. UTC | #6
hi,

>> Beware.  Is Andrew Victor the original author of the code being removed
>> here and in this case he's indicating his agreement to the removal of
>> his code, or he is the one actually responsible for the removal?  If the
>> former then it is wrong to put a "From" with his name and the
>> "Acked-by:" is the right thing to do.
>>
>
> Right, I was confused by the email. I prepared the removing patch and
> Andrew said "Acked-by".
> Andrew, is that what you want?

Yes, I'm acknowledging the removal of my code.
So, Acked-by.


Regards,
  Andrew
diff mbox

Patch

diff --git a/arch/arm/mach-ks8695/Makefile b/arch/arm/mach-ks8695/Makefile
index 7e3e816..39c7d3c 100644
--- a/arch/arm/mach-ks8695/Makefile
+++ b/arch/arm/mach-ks8695/Makefile
@@ -11,9 +11,6 @@  obj-				:=
 # PCI support is optional
 obj-$(CONFIG_PCI)		+= pci.o
 
-# LEDs
-obj-$(CONFIG_LEDS)		+= leds.o
-
 # Board-specific support
 obj-$(CONFIG_MACH_KS8695)	+= board-micrel.o
 obj-$(CONFIG_MACH_DSM320)	+= board-dsm320.o
diff --git a/arch/arm/mach-ks8695/devices.c b/arch/arm/mach-ks8695/devices.c
index b89fb6d..5ebf45d 100644
--- a/arch/arm/mach-ks8695/devices.c
+++ b/arch/arm/mach-ks8695/devices.c
@@ -181,27 +181,6 @@  static void __init ks8695_add_device_watchdog(void)
 }
 
 
-/* --------------------------------------------------------------------
- *  LEDs
- * -------------------------------------------------------------------- */
-
-#if defined(CONFIG_LEDS)
-short ks8695_leds_cpu = -1;
-short ks8695_leds_timer = -1;
-
-void __init ks8695_init_leds(u8 cpu_led, u8 timer_led)
-{
-	/* Enable GPIO to access the LEDs */
-	gpio_direction_output(cpu_led, 1);
-	gpio_direction_output(timer_led, 1);
-
-	ks8695_leds_cpu	  = cpu_led;
-	ks8695_leds_timer = timer_led;
-}
-#else
-void __init ks8695_init_leds(u8 cpu_led, u8 timer_led) {}
-#endif
-
 /* -------------------------------------------------------------------- */
 
 /*
diff --git a/arch/arm/mach-ks8695/include/mach/devices.h b/arch/arm/mach-ks8695/include/mach/devices.h
index 2744fec..6e0c94a 100644
--- a/arch/arm/mach-ks8695/include/mach/devices.h
+++ b/arch/arm/mach-ks8695/include/mach/devices.h
@@ -18,11 +18,6 @@  extern void __init ks8695_add_device_wan(void);
 extern void __init ks8695_add_device_lan(void);
 extern void __init ks8695_add_device_hpna(void);
 
- /* LEDs */
-extern short ks8695_leds_cpu;
-extern short ks8695_leds_timer;
-extern void __init ks8695_init_leds(u8 cpu_led, u8 timer_led);
-
  /* PCI */
 #define KS8695_MODE_PCI		0
 #define KS8695_MODE_MINIPCI	1
diff --git a/arch/arm/mach-ks8695/leds.c b/arch/arm/mach-ks8695/leds.c
deleted file mode 100644
index 184ef74..0000000
--- a/arch/arm/mach-ks8695/leds.c
+++ /dev/null
@@ -1,93 +0,0 @@ 
-/*
- * LED driver for KS8695-based boards.
- *
- * Copyright (C) Andrew Victor
- *
- * 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 <asm/leds.h>
-#include <mach/devices.h>
-#include <mach/gpio.h>
-
-
-static inline void ks8695_led_on(unsigned int led)
-{
-	gpio_set_value(led, 0);
-}
-
-static inline void ks8695_led_off(unsigned int led)
-{
-	gpio_set_value(led, 1);
-}
-
-static inline void ks8695_led_toggle(unsigned int led)
-{
-	unsigned long is_off = gpio_get_value(led);
-	if (is_off)
-		ks8695_led_on(led);
-	else
-		ks8695_led_off(led);
-}
-
-
-/*
- * Handle LED events.
- */
-static void ks8695_leds_event(led_event_t evt)
-{
-	unsigned long flags;
-
-	local_irq_save(flags);
-
-	switch(evt) {
-	case led_start:		/* System startup */
-		ks8695_led_on(ks8695_leds_cpu);
-		break;
-
-	case led_stop:		/* System stop / suspend */
-		ks8695_led_off(ks8695_leds_cpu);
-		break;
-
-#ifdef CONFIG_LEDS_TIMER
-	case led_timer:		/* Every 50 timer ticks */
-		ks8695_led_toggle(ks8695_leds_timer);
-		break;
-#endif
-
-#ifdef CONFIG_LEDS_CPU
-	case led_idle_start:	/* Entering idle state */
-		ks8695_led_off(ks8695_leds_cpu);
-		break;
-
-	case led_idle_end:	/* Exit idle state */
-		ks8695_led_on(ks8695_leds_cpu);
-		break;
-#endif
-
-	default:
-		break;
-	}
-
-	local_irq_restore(flags);
-}
-
-
-static int __init leds_init(void)
-{
-	if ((ks8695_leds_timer == -1) || (ks8695_leds_cpu == -1))
-		return -ENODEV;
-
-	leds_event = ks8695_leds_event;
-
-	leds_event(led_start);
-	return 0;
-}
-
-__initcall(leds_init);