Changeset 9284


Ignore:
Timestamp:
2007-10-13T05:07:13+02:00 (10 years ago)
Author:
rwhitby
Message:

Fixed compiler warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ixp4xx/patches/997-fsg3_buttons.patch

    r9276 r9284  
    1 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 
    2 --- linux-2.6.21.6-orig/arch/arm/mach-ixp4xx/fsg-power.c        1970-01-01 01:00:00.000000000 +0100 
    3 +++ linux-2.6.21.6/arch/arm/mach-ixp4xx/fsg-power.c     2007-10-12 22:32:27.000000000 +0200 
     1--- 
     2 arch/arm/mach-ixp4xx/Makefile    |    2  
     3 arch/arm/mach-ixp4xx/fsg-power.c |  168 +++++++++++++++++++++++++++++++++++++++ 
     4 2 files changed, 169 insertions(+), 1 deletion(-) 
     5 
     6Index: linux-2.6.21.6-armeb/arch/arm/mach-ixp4xx/fsg-power.c 
     7=================================================================== 
     8--- /dev/null 
     9+++ linux-2.6.21.6-armeb/arch/arm/mach-ixp4xx/fsg-power.c 
    410@@ -0,0 +1,168 @@ 
    511+/* 
     
    6369+{ 
    6470+       int holdkey; 
     71+       struct event_t *event; 
    6572+ 
    6673+       //check button status 
    6774+       gpio_line_get(FSG_SB_GPIO, &holdkey); 
    6875+ 
    69 +       struct event_t *event; 
    7076+       //create event 
    7177+       if ((event = (struct event_t *)kzalloc (sizeof(struct event_t), GFP_ATOMIC))) { 
    7278+               event->action = holdkey; 
    7379+               event->button_name = "sync"; 
    74 +                        
     80+ 
    7581+               INIT_WORK(&event->wq, (void *)(void *)hotplug_button); 
    76 +               schedule_work(&event->wq);                       
     82+               schedule_work(&event->wq); 
    7783+       } 
    7884+ 
     
    8389+{ 
    8490+       int holdkey; 
     91+       struct event_t *event; 
    8592+ 
    8693+       //check button status 
    8794+       gpio_line_get(FSG_RB_GPIO, &holdkey); 
    8895+ 
    89 +       struct event_t *event; 
    9096+       //create event 
    9197+       if ((event = (struct event_t *)kzalloc (sizeof(struct event_t), GFP_ATOMIC))) { 
    9298+               event->action = holdkey; 
    9399+               event->button_name = "reset"; 
    94 +                        
     100+ 
    95101+               INIT_WORK(&event->wq, (void *)(void *)hotplug_button); 
    96 +               schedule_work(&event->wq);                       
     102+               schedule_work(&event->wq); 
    97103+       } 
    98104+ 
     
    103109+{ 
    104110+       int holdkey; 
     111+       struct event_t *event; 
    105112+ 
    106113+       //check button status 
    107114+       gpio_line_get(FSG_UB_GPIO, &holdkey); 
    108115+ 
    109 +       struct event_t *event; 
    110116+       //create event 
    111117+       if ((event = (struct event_t *)kzalloc (sizeof(struct event_t), GFP_ATOMIC))) { 
    112118+               event->action = holdkey; 
    113119+               event->button_name = "unplug"; 
    114 +                        
     120+ 
    115121+               INIT_WORK(&event->wq, (void *)(void *)hotplug_button); 
    116 +               schedule_work(&event->wq);                       
     122+               schedule_work(&event->wq); 
    117123+       } 
    118124+ 
     
    123129+{ 
    124130+       if (!(machine_is_fsg())) 
    125 +               return; 
     131+               return 0; 
    126132+ 
    127133+       /* Configure interrupt input for SYNC button */ 
     
    171177+MODULE_DESCRIPTION("FSG buttons driver"); 
    172178+MODULE_LICENSE("GPL"); 
    173 diff -Nur linux-2.6.21.6-orig/arch/arm/mach-ixp4xx/Makefile linux-2.6.21.6/arch/arm/mach-ixp4xx/Makefile 
    174 --- linux-2.6.21.6-orig/arch/arm/mach-ixp4xx/Makefile   2007-10-12 14:34:18.000000000 +0200 
    175 +++ linux-2.6.21.6/arch/arm/mach-ixp4xx/Makefile        2007-10-12 22:34:06.000000000 +0200 
     179Index: linux-2.6.21.6-armeb/arch/arm/mach-ixp4xx/Makefile 
     180=================================================================== 
     181--- linux-2.6.21.6-armeb.orig/arch/arm/mach-ixp4xx/Makefile 
     182+++ linux-2.6.21.6-armeb/arch/arm/mach-ixp4xx/Makefile 
    176183@@ -30,7 +30,7 @@ 
    177184 obj-$(CONFIG_MACH_NSLU2)       += nslu2-setup.o nslu2-power.o 
Note: See TracChangeset for help on using the changeset viewer.