Changeset 42482


Ignore:
Timestamp:
2014-09-12T08:50:53+02:00 (3 years ago)
Author:
blogic
Message:

atheros: avoid extern prototypes

Avoid using of extern prototypes as suggested by checkpatch.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/atheros/patches-3.14/100-board.patch

    r41995 r42482  
    26982698+#ifdef CONFIG_ATHEROS_AR2315 
    26992699+ 
    2700 +extern void ar2315_irq_init(void); 
    2701 +extern int ar2315_init_devices(void); 
    2702 +extern void ar2315_prom_init(void); 
    2703 +extern void ar2315_plat_setup(void); 
    2704 +extern void ar2315_time_init(void); 
     2700+void ar2315_irq_init(void); 
     2701+int ar2315_init_devices(void); 
     2702+void ar2315_prom_init(void); 
     2703+void ar2315_plat_setup(void); 
     2704+void ar2315_time_init(void); 
    27052705+ 
    27062706+#else 
     
    27322732--- /dev/null 
    27332733+++ b/arch/mips/ar231x/ar5312.h 
    2734 @@ -0,0 +1,38 @@ 
     2734@@ -0,0 +1,37 @@ 
    27352735+#ifndef __AR5312_H 
    27362736+#define __AR5312_H 
     
    27382738+#ifdef CONFIG_ATHEROS_AR5312 
    27392739+ 
    2740 +extern void ar5312_irq_init(void); 
    2741 +extern int ar5312_init_devices(void); 
    2742 +extern void ar5312_prom_init(void); 
    2743 +extern void ar5312_plat_setup(void); 
    2744 +extern void ar5312_time_init(void); 
    2745 +extern void ar5312_time_init(void); 
     2740+void ar5312_irq_init(void); 
     2741+int ar5312_init_devices(void); 
     2742+void ar5312_prom_init(void); 
     2743+void ar5312_plat_setup(void); 
     2744+void ar5312_time_init(void); 
    27462745+ 
    27472746+#else 
     
    28412840+extern asmlinkage void (*ar231x_irq_dispatch)(void); 
    28422841+ 
    2843 +extern int ar231x_find_config(u8 *flash_limit); 
    2844 +extern void ar231x_serial_setup(u32 mapbase, int irq, unsigned int uartclk); 
    2845 +extern int ar231x_add_wmac(int nr, u32 base, int irq); 
    2846 +extern int ar231x_add_ethernet(int nr, u32 base, const char *mii_name, 
    2847 +                              u32 mii_base, int irq, void *pdata); 
     2842+int ar231x_find_config(u8 *flash_limit); 
     2843+void ar231x_serial_setup(u32 mapbase, int irq, unsigned int uartclk); 
     2844+int ar231x_add_wmac(int nr, u32 base, int irq); 
     2845+int ar231x_add_ethernet(int nr, u32 base, const char *mii_name, u32 mii_base, 
     2846+                       int irq, void *pdata); 
    28482847+ 
    28492848+static inline bool is_2315(void) 
Note: See TracChangeset for help on using the changeset viewer.