Changeset 31024 for trunk


Ignore:
Timestamp:
2012-03-19T16:57:03+01:00 (5 years ago)
Author:
juhosg
Message:

ar71xx: make rb750_latch_change 'static void'

Location:
trunk/target/linux/ar71xx/files/arch/mips
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/files/arch/mips/ath79/mach-rb750.c

    r31023 r31024  
    6565}; 
    6666 
    67 int rb750_latch_change(u32 mask_clr, u32 mask_set) 
     67static void rb750_latch_change(u32 mask_clr, u32 mask_set) 
    6868{ 
    6969        static DEFINE_SPINLOCK(lock); 
     
    7373        unsigned long flags; 
    7474        u32 t; 
    75         int ret = 0; 
    7675 
    7776        spin_lock_irqsave(&lock, flags); 
     
    106105        } 
    107106 
    108         ret = 1; 
    109  
    110107unlock: 
    111108        spin_unlock_irqrestore(&lock, flags); 
    112         return ret; 
    113109} 
    114 EXPORT_SYMBOL_GPL(rb750_latch_change); 
    115110 
    116111static void rb750_nand_enable_pins(void) 
     
    126121                                  AR724X_GPIO_FUNC_JTAG_DISABLE); 
    127122        rb750_latch_change(0, RB750_LVC573_LE); 
    128 } 
    129  
    130 static void rb750_nand_latch_change(u32 clear, u32 set) 
    131 { 
    132         rb750_latch_change(clear, set); 
    133123} 
    134124 
     
    154144        rb750_leds_data.num_leds = ARRAY_SIZE(rb750_leds); 
    155145        rb750_leds_data.leds = rb750_leds; 
    156         rb750_leds_data.latch_change = rb750_nand_latch_change; 
     146        rb750_leds_data.latch_change = rb750_latch_change; 
    157147        platform_device_register(&rb750_leds_device); 
    158148 
     
    160150        rb750_nand_data.enable_pins = rb750_nand_enable_pins; 
    161151        rb750_nand_data.disable_pins = rb750_nand_disable_pins; 
    162         rb750_nand_data.latch_change = rb750_nand_latch_change; 
     152        rb750_nand_data.latch_change = rb750_latch_change; 
    163153        platform_device_register(&rb750_nand_device); 
    164154} 
  • trunk/target/linux/ar71xx/files/arch/mips/include/asm/mach-ath79/mach-rb750.h

    r31023 r31024  
    7272}; 
    7373 
    74 int rb750_latch_change(u32 mask_clr, u32 mask_set); 
    75  
    7674#endif /* _MACH_RB750_H */ 
Note: See TracChangeset for help on using the changeset viewer.