aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/atheros/patches-3.14
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2014-09-12 06:50:53 +0000
committerJohn Crispin <blogic@openwrt.org>2014-09-12 06:50:53 +0000
commitea4d8f59c81233d3ecdc91256dbfd50204a39c81 (patch)
tree5b36c54a3e5de9997135a7a17aadb66b40b0296a /target/linux/atheros/patches-3.14
parent0547b47537b53201f96f49d95843e906d8bd166e (diff)
downloadupstream-ea4d8f59c81233d3ecdc91256dbfd50204a39c81.tar.gz
upstream-ea4d8f59c81233d3ecdc91256dbfd50204a39c81.tar.bz2
upstream-ea4d8f59c81233d3ecdc91256dbfd50204a39c81.zip
atheros: avoid extern prototypes
Avoid using of extern prototypes as suggested by checkpatch. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42482 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/atheros/patches-3.14')
-rw-r--r--target/linux/atheros/patches-3.14/100-board.patch33
1 files changed, 16 insertions, 17 deletions
diff --git a/target/linux/atheros/patches-3.14/100-board.patch b/target/linux/atheros/patches-3.14/100-board.patch
index a45664ac42..0e1b6b539a 100644
--- a/target/linux/atheros/patches-3.14/100-board.patch
+++ b/target/linux/atheros/patches-3.14/100-board.patch
@@ -2697,11 +2697,11 @@
+
+#ifdef CONFIG_ATHEROS_AR2315
+
-+extern void ar2315_irq_init(void);
-+extern int ar2315_init_devices(void);
-+extern void ar2315_prom_init(void);
-+extern void ar2315_plat_setup(void);
-+extern void ar2315_time_init(void);
++void ar2315_irq_init(void);
++int ar2315_init_devices(void);
++void ar2315_prom_init(void);
++void ar2315_plat_setup(void);
++void ar2315_time_init(void);
+
+#else
+
@@ -2731,18 +2731,17 @@
+#endif
--- /dev/null
+++ b/arch/mips/ar231x/ar5312.h
-@@ -0,0 +1,38 @@
+@@ -0,0 +1,37 @@
+#ifndef __AR5312_H
+#define __AR5312_H
+
+#ifdef CONFIG_ATHEROS_AR5312
+
-+extern void ar5312_irq_init(void);
-+extern int ar5312_init_devices(void);
-+extern void ar5312_prom_init(void);
-+extern void ar5312_plat_setup(void);
-+extern void ar5312_time_init(void);
-+extern void ar5312_time_init(void);
++void ar5312_irq_init(void);
++int ar5312_init_devices(void);
++void ar5312_prom_init(void);
++void ar5312_plat_setup(void);
++void ar5312_time_init(void);
+
+#else
+
@@ -2840,11 +2839,11 @@
+extern struct ar231x_board_config ar231x_board;
+extern asmlinkage void (*ar231x_irq_dispatch)(void);
+
-+extern int ar231x_find_config(u8 *flash_limit);
-+extern void ar231x_serial_setup(u32 mapbase, int irq, unsigned int uartclk);
-+extern int ar231x_add_wmac(int nr, u32 base, int irq);
-+extern int ar231x_add_ethernet(int nr, u32 base, const char *mii_name,
-+ u32 mii_base, int irq, void *pdata);
++int ar231x_find_config(u8 *flash_limit);
++void ar231x_serial_setup(u32 mapbase, int irq, unsigned int uartclk);
++int ar231x_add_wmac(int nr, u32 base, int irq);
++int ar231x_add_ethernet(int nr, u32 base, const char *mii_name, u32 mii_base,
++ int irq, void *pdata);
+
+static inline bool is_2315(void)
+{