Fixed compiler warnings

SVN-Revision: 9284
master
Rod Whitby 17 years ago
parent a40dd0b5cc
commit 22fef3d916
  1. 27
      target/linux/ixp4xx/patches/997-fsg3_buttons.patch

@ -1,6 +1,12 @@
diff -Nur linux-2.6.21.6-orig/arch/arm/mach-ixp4xx/fsg-power.c linux-2.6.21.6/arch/arm/mach-ixp4xx/fsg-power.c ---
--- linux-2.6.21.6-orig/arch/arm/mach-ixp4xx/fsg-power.c 1970-01-01 01:00:00.000000000 +0100 arch/arm/mach-ixp4xx/Makefile | 2
+++ linux-2.6.21.6/arch/arm/mach-ixp4xx/fsg-power.c 2007-10-12 22:32:27.000000000 +0200 arch/arm/mach-ixp4xx/fsg-power.c | 168 +++++++++++++++++++++++++++++++++++++++
2 files changed, 169 insertions(+), 1 deletion(-)
Index: linux-2.6.21.6-armeb/arch/arm/mach-ixp4xx/fsg-power.c
===================================================================
--- /dev/null
+++ linux-2.6.21.6-armeb/arch/arm/mach-ixp4xx/fsg-power.c
@@ -0,0 +1,168 @@ @@ -0,0 +1,168 @@
+/* +/*
+ * arch/arm/mach-ixp4xx/fsg-power.c + * arch/arm/mach-ixp4xx/fsg-power.c
@ -62,11 +68,11 @@ diff -Nur linux-2.6.21.6-orig/arch/arm/mach-ixp4xx/fsg-power.c linux-2.6.21.6/ar
+static irqreturn_t fsg_sync_button_handler(int irq, void *dev_id) +static irqreturn_t fsg_sync_button_handler(int irq, void *dev_id)
+{ +{
+ int holdkey; + int holdkey;
+ struct event_t *event;
+ +
+ //check button status + //check button status
+ gpio_line_get(FSG_SB_GPIO, &holdkey); + gpio_line_get(FSG_SB_GPIO, &holdkey);
+ +
+ struct event_t *event;
+ //create event + //create event
+ if ((event = (struct event_t *)kzalloc (sizeof(struct event_t), GFP_ATOMIC))) { + if ((event = (struct event_t *)kzalloc (sizeof(struct event_t), GFP_ATOMIC))) {
+ event->action = holdkey; + event->action = holdkey;
@ -82,11 +88,11 @@ diff -Nur linux-2.6.21.6-orig/arch/arm/mach-ixp4xx/fsg-power.c linux-2.6.21.6/ar
+static irqreturn_t fsg_reset_button_handler(int irq, void *dev_id) +static irqreturn_t fsg_reset_button_handler(int irq, void *dev_id)
+{ +{
+ int holdkey; + int holdkey;
+ struct event_t *event;
+ +
+ //check button status + //check button status
+ gpio_line_get(FSG_RB_GPIO, &holdkey); + gpio_line_get(FSG_RB_GPIO, &holdkey);
+ +
+ struct event_t *event;
+ //create event + //create event
+ if ((event = (struct event_t *)kzalloc (sizeof(struct event_t), GFP_ATOMIC))) { + if ((event = (struct event_t *)kzalloc (sizeof(struct event_t), GFP_ATOMIC))) {
+ event->action = holdkey; + event->action = holdkey;
@ -102,11 +108,11 @@ diff -Nur linux-2.6.21.6-orig/arch/arm/mach-ixp4xx/fsg-power.c linux-2.6.21.6/ar
+static irqreturn_t fsg_unplug_button_handler(int irq, void *dev_id) +static irqreturn_t fsg_unplug_button_handler(int irq, void *dev_id)
+{ +{
+ int holdkey; + int holdkey;
+ struct event_t *event;
+ +
+ //check button status + //check button status
+ gpio_line_get(FSG_UB_GPIO, &holdkey); + gpio_line_get(FSG_UB_GPIO, &holdkey);
+ +
+ struct event_t *event;
+ //create event + //create event
+ if ((event = (struct event_t *)kzalloc (sizeof(struct event_t), GFP_ATOMIC))) { + if ((event = (struct event_t *)kzalloc (sizeof(struct event_t), GFP_ATOMIC))) {
+ event->action = holdkey; + event->action = holdkey;
@ -122,7 +128,7 @@ diff -Nur linux-2.6.21.6-orig/arch/arm/mach-ixp4xx/fsg-power.c linux-2.6.21.6/ar
+static int __init fsg_buttons_init(void) +static int __init fsg_buttons_init(void)
+{ +{
+ if (!(machine_is_fsg())) + if (!(machine_is_fsg()))
+ return; + return 0;
+ +
+ /* Configure interrupt input for SYNC button */ + /* Configure interrupt input for SYNC button */
+ set_irq_type(FSG_SB_IRQ, IRQT_BOTHEDGE); + set_irq_type(FSG_SB_IRQ, IRQT_BOTHEDGE);
@ -170,9 +176,10 @@ diff -Nur linux-2.6.21.6-orig/arch/arm/mach-ixp4xx/fsg-power.c linux-2.6.21.6/ar
+MODULE_AUTHOR("Zintis Petersons <Zintis.Petersons@e-mail.lv>"); +MODULE_AUTHOR("Zintis Petersons <Zintis.Petersons@e-mail.lv>");
+MODULE_DESCRIPTION("FSG buttons driver"); +MODULE_DESCRIPTION("FSG buttons driver");
+MODULE_LICENSE("GPL"); +MODULE_LICENSE("GPL");
diff -Nur linux-2.6.21.6-orig/arch/arm/mach-ixp4xx/Makefile linux-2.6.21.6/arch/arm/mach-ixp4xx/Makefile Index: linux-2.6.21.6-armeb/arch/arm/mach-ixp4xx/Makefile
--- linux-2.6.21.6-orig/arch/arm/mach-ixp4xx/Makefile 2007-10-12 14:34:18.000000000 +0200 ===================================================================
+++ linux-2.6.21.6/arch/arm/mach-ixp4xx/Makefile 2007-10-12 22:34:06.000000000 +0200 --- linux-2.6.21.6-armeb.orig/arch/arm/mach-ixp4xx/Makefile
+++ linux-2.6.21.6-armeb/arch/arm/mach-ixp4xx/Makefile
@@ -30,7 +30,7 @@ @@ -30,7 +30,7 @@
obj-$(CONFIG_MACH_NSLU2) += nslu2-setup.o nslu2-power.o obj-$(CONFIG_MACH_NSLU2) += nslu2-setup.o nslu2-power.o
obj-$(CONFIG_MACH_NAS100D) += nas100d-setup.o nas100d-power.o obj-$(CONFIG_MACH_NAS100D) += nas100d-setup.o nas100d-power.o

Loading…
Cancel
Save