ixp4xx-kernel: updated beeper code from CVS in 2.6.15.1
authorJohn Bowler <jbowler@nslu2-linux.org>
Fri, 27 Jan 2006 08:33:47 +0000 (08:33 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Fri, 27 Jan 2006 08:33:47 +0000 (08:33 +0000)
packages/linux/ixp4xx-kernel/2.6.15/60-ixp4xx-beeper.patch
packages/linux/ixp4xx-kernel/2.6.15/defconfig
packages/linux/ixp4xx-kernel_2.6.15.1.bb

index 5acf547..f3a5149 100644 (file)
@@ -1,8 +1,12 @@
+Generic beeper support for the ixp4xx platform.
+
+Signed-off-by: Alessandro Zummo <a.zummo@towertech.it>
+
  arch/arm/mach-ixp4xx/nslu2-setup.c |    7 +
  drivers/input/misc/Kconfig         |   12 ++
  drivers/input/misc/Makefile        |    1 
- drivers/input/misc/ixp4xx-beeper.c |  172 +++++++++++++++++++++++++++++++++++++
- 4 files changed, 192 insertions(+)
+ drivers/input/misc/ixp4xx-beeper.c |  174 +++++++++++++++++++++++++++++++++++++
+ 4 files changed, 194 insertions(+)
 
 --- linux-nslu2.orig/drivers/input/misc/Kconfig        2006-01-23 02:13:55.000000000 +0100
 +++ linux-nslu2/drivers/input/misc/Kconfig     2006-01-23 02:29:48.000000000 +0100
@@ -33,7 +37,7 @@
  obj-$(CONFIG_HP_SDC_RTC)              += hp_sdc_rtc.o
 +obj-$(CONFIG_INPUT_IXP4XX_BEEPER)     += ixp4xx-beeper.o
 --- linux-nslu2.orig/arch/arm/mach-ixp4xx/nslu2-setup.c        2006-01-23 02:13:55.000000000 +0100
-+++ linux-nslu2/arch/arm/mach-ixp4xx/nslu2-setup.c     2006-01-23 02:26:04.000000000 +0100
++++ linux-nslu2/arch/arm/mach-ixp4xx/nslu2-setup.c     2006-01-25 11:32:14.000000000 +0100
 @@ -52,6 +52,12 @@ static struct platform_device nslu2_i2c_
        .num_resources          = 0,
  };
@@ -56,8 +60,8 @@
  
  static void nslu2_power_off(void)
 --- /dev/null  1970-01-01 00:00:00.000000000 +0000
-+++ linux-nslu2/drivers/input/misc/ixp4xx-beeper.c     2006-01-23 02:13:57.000000000 +0100
-@@ -0,0 +1,172 @@
++++ linux-nslu2/drivers/input/misc/ixp4xx-beeper.c     2006-01-25 11:37:03.000000000 +0100
+@@ -0,0 +1,174 @@
 +/*
 + * Generic IXP4xx beeper driver
 + *
 +
 +      /* turn the speaker off */
 +      disable_irq(IRQ_IXP4XX_TIMER2);
-+      ixp4xx_spkr_event(NULL, EV_SND, SND_BELL, 0);
++      ixp4xx_spkr_event(input_dev, EV_SND, SND_BELL, 0);
 +
 +      free_irq(IRQ_IXP4XX_TIMER2, dev);
 +
 +
 +static void ixp4xx_spkr_shutdown(struct platform_device *dev)
 +{
++      struct input_dev *input_dev = platform_get_drvdata(dev);
++
 +      /* turn off the speaker */
 +      disable_irq(IRQ_IXP4XX_TIMER2);
-+      ixp4xx_spkr_event(NULL, EV_SND, SND_BELL, 0);
++      ixp4xx_spkr_event(input_dev, EV_SND, SND_BELL, 0);
 +}
 +
 +static struct platform_driver ixp4xx_spkr_platform_driver = {
index 3dfbfa5..7d92739 100644 (file)
@@ -867,7 +867,7 @@ CONFIG_INPUT=y
 # CONFIG_INPUT_MOUSEDEV is not set
 # CONFIG_INPUT_JOYDEV is not set
 # CONFIG_INPUT_TSDEV is not set
-CONFIG_INPUT_EVDEV=m
+CONFIG_INPUT_EVDEV=y
 # CONFIG_INPUT_EVBUG is not set
 
 #
index f9d08c0..697988a 100644 (file)
@@ -8,7 +8,7 @@ PR_CONFIG = "0"
 # Increment the number below (i.e. the digits after PR) when
 # making changes within this file or for changes to the patches
 # applied to the kernel.
-PR = "r15.${PR_CONFIG}"
+PR = "r16.${PR_CONFIG}"
 
 include ixp4xx-kernel.inc