atheros: avoid extern prototypes
Avoid using of extern prototypes as suggested by checkpatch. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 42482
This commit is contained in:
parent
17cf9c4593
commit
60922d0013
1 changed files with 16 additions and 17 deletions
|
@ -2697,11 +2697,11 @@
|
||||||
+
|
+
|
||||||
+#ifdef CONFIG_ATHEROS_AR2315
|
+#ifdef CONFIG_ATHEROS_AR2315
|
||||||
+
|
+
|
||||||
+extern void ar2315_irq_init(void);
|
+void ar2315_irq_init(void);
|
||||||
+extern int ar2315_init_devices(void);
|
+int ar2315_init_devices(void);
|
||||||
+extern void ar2315_prom_init(void);
|
+void ar2315_prom_init(void);
|
||||||
+extern void ar2315_plat_setup(void);
|
+void ar2315_plat_setup(void);
|
||||||
+extern void ar2315_time_init(void);
|
+void ar2315_time_init(void);
|
||||||
+
|
+
|
||||||
+#else
|
+#else
|
||||||
+
|
+
|
||||||
|
@ -2731,18 +2731,17 @@
|
||||||
+#endif
|
+#endif
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/arch/mips/ar231x/ar5312.h
|
+++ b/arch/mips/ar231x/ar5312.h
|
||||||
@@ -0,0 +1,38 @@
|
@@ -0,0 +1,37 @@
|
||||||
+#ifndef __AR5312_H
|
+#ifndef __AR5312_H
|
||||||
+#define __AR5312_H
|
+#define __AR5312_H
|
||||||
+
|
+
|
||||||
+#ifdef CONFIG_ATHEROS_AR5312
|
+#ifdef CONFIG_ATHEROS_AR5312
|
||||||
+
|
+
|
||||||
+extern void ar5312_irq_init(void);
|
+void ar5312_irq_init(void);
|
||||||
+extern int ar5312_init_devices(void);
|
+int ar5312_init_devices(void);
|
||||||
+extern void ar5312_prom_init(void);
|
+void ar5312_prom_init(void);
|
||||||
+extern void ar5312_plat_setup(void);
|
+void ar5312_plat_setup(void);
|
||||||
+extern void ar5312_time_init(void);
|
+void ar5312_time_init(void);
|
||||||
+extern void ar5312_time_init(void);
|
|
||||||
+
|
+
|
||||||
+#else
|
+#else
|
||||||
+
|
+
|
||||||
|
@ -2840,11 +2839,11 @@
|
||||||
+extern struct ar231x_board_config ar231x_board;
|
+extern struct ar231x_board_config ar231x_board;
|
||||||
+extern asmlinkage void (*ar231x_irq_dispatch)(void);
|
+extern asmlinkage void (*ar231x_irq_dispatch)(void);
|
||||||
+
|
+
|
||||||
+extern int ar231x_find_config(u8 *flash_limit);
|
+int ar231x_find_config(u8 *flash_limit);
|
||||||
+extern void ar231x_serial_setup(u32 mapbase, int irq, unsigned int uartclk);
|
+void ar231x_serial_setup(u32 mapbase, int irq, unsigned int uartclk);
|
||||||
+extern int ar231x_add_wmac(int nr, u32 base, int irq);
|
+int ar231x_add_wmac(int nr, u32 base, int irq);
|
||||||
+extern int ar231x_add_ethernet(int nr, u32 base, const char *mii_name,
|
+int ar231x_add_ethernet(int nr, u32 base, const char *mii_name, u32 mii_base,
|
||||||
+ u32 mii_base, int irq, void *pdata);
|
+ int irq, void *pdata);
|
||||||
+
|
+
|
||||||
+static inline bool is_2315(void)
|
+static inline bool is_2315(void)
|
||||||
+{
|
+{
|
||||||
|
|
Loading…
Reference in a new issue