ramips: remove extern and __init from function prototypes
authorGabor Juhos <juhosg@openwrt.org>
Wed, 26 Jan 2011 20:48:33 +0000 (20:48 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Wed, 26 Jan 2011 20:48:33 +0000 (20:48 +0000)
SVN-Revision: 25123

target/linux/ramips/files/arch/mips/include/asm/mach-ralink/common.h
target/linux/ramips/files/arch/mips/include/asm/mach-ralink/dev-gpio-buttons.h
target/linux/ramips/files/arch/mips/include/asm/mach-ralink/dev-gpio-leds.h
target/linux/ramips/files/arch/mips/include/asm/mach-ralink/rt288x.h
target/linux/ramips/files/arch/mips/include/asm/mach-ralink/rt305x.h
target/linux/ramips/files/arch/mips/ralink/rt288x/devices.h
target/linux/ramips/files/arch/mips/ralink/rt305x/devices.h

index 4fd732432c90993ca8c09ea1ac12a0a23aa99d0d..8f058c88c42ae4ccc336542b1cf62091a866361f 100644 (file)
@@ -1,5 +1,5 @@
 /*
 /*
- *  Copyright (C) 2009 Gabor Juhos <juhosg@openwrt.org>
+ *  Copyright (C) 2009-2011 Gabor Juhos <juhosg@openwrt.org>
  *
  *  This program is free software; you can redistribute it and/or modify it
  *  under the terms of the GNU General Public License version 2 as published
  *
  *  This program is free software; you can redistribute it and/or modify it
  *  under the terms of the GNU General Public License version 2 as published
 #define RAMIPS_SYS_TYPE_LEN    64
 extern unsigned char ramips_sys_type[RAMIPS_SYS_TYPE_LEN];
 
 #define RAMIPS_SYS_TYPE_LEN    64
 extern unsigned char ramips_sys_type[RAMIPS_SYS_TYPE_LEN];
 
-void __init ramips_intc_irq_init(unsigned intc_base, unsigned irq,
-                                unsigned irq_base);
+void ramips_intc_irq_init(unsigned intc_base, unsigned irq, unsigned irq_base);
 u32 ramips_intc_get_status(void);
 
 u32 ramips_intc_get_status(void);
 
-void __init ramips_soc_setup(void);
-void __init ramips_gpio_init(void);
-void __init ramips_early_serial_setup(int line, unsigned base, unsigned freq,
-                                     unsigned irq);
+void ramips_soc_setup(void);
+void ramips_gpio_init(void);
+void ramips_early_serial_setup(int line, unsigned base, unsigned freq,
+                              unsigned irq);
 
 #endif /* __ASM_MACH_RALINK_COMMON_H */
 
 #endif /* __ASM_MACH_RALINK_COMMON_H */
index 0ab5c3762668ea3481e157f6dbcff23efc652309..d223737e0990d8e0f86803562a6769efba250694 100644 (file)
@@ -1,7 +1,7 @@
 /*
  *  Ralink SoC GPIO button support
  *
 /*
  *  Ralink SoC GPIO button support
  *
- *  Copyright (C) 2010 Gabor Juhos <juhosg@openwrt.org>
+ *  Copyright (C) 2010-2011 Gabor Juhos <juhosg@openwrt.org>
  *
  *  This program is free software; you can redistribute it and/or modify it
  *  under the terms of the GNU General Public License version 2 as published
  *
  *  This program is free software; you can redistribute it and/or modify it
  *  under the terms of the GNU General Public License version 2 as published
 #include <linux/gpio_buttons.h>
 
 #ifdef CONFIG_RALINK_DEV_GPIO_BUTTONS
 #include <linux/gpio_buttons.h>
 
 #ifdef CONFIG_RALINK_DEV_GPIO_BUTTONS
-void __init ramips_register_gpio_buttons(int id,
-                                        unsigned poll_interval,
-                                        unsigned nbuttons,
-                                        struct gpio_button *buttons);
+void ramips_register_gpio_buttons(int id,
+                                 unsigned poll_interval,
+                                 unsigned nbuttons,
+                                 struct gpio_button *buttons);
 #else
 static inline void ramips_register_gpio_buttons(int id,
                                                unsigned poll_interval,
 #else
 static inline void ramips_register_gpio_buttons(int id,
                                                unsigned poll_interval,
index ad2ed2667b12bac431bda5b2418aa50c2151c5bc..24233abde6890d8920ab4a6095eb6e5e5ff1d8f1 100644 (file)
@@ -1,7 +1,7 @@
 /*
  *  Ralink SoC GPIO LED device support
  *
 /*
  *  Ralink SoC GPIO LED device support
  *
- *  Copyright (C) 2009-2010 Gabor Juhos <juhosg@openwrt.org>
+ *  Copyright (C) 2009-2011 Gabor Juhos <juhosg@openwrt.org>
  *
  *  This program is free software; you can redistribute it and/or modify it
  *  under the terms of the GNU General Public License version 2 as published
  *
  *  This program is free software; you can redistribute it and/or modify it
  *  under the terms of the GNU General Public License version 2 as published
@@ -14,8 +14,8 @@
 #include <linux/leds.h>
 
 #ifdef CONFIG_RALINK_DEV_GPIO_LEDS
 #include <linux/leds.h>
 
 #ifdef CONFIG_RALINK_DEV_GPIO_LEDS
-__init void ramips_register_gpio_leds(int id, unsigned num_leds,
-                                     struct gpio_led *leds);
+void ramips_register_gpio_leds(int id, unsigned num_leds,
+                              struct gpio_led *leds);
 #else
 static inline void ramips_register_gpio_leds(int id, unsigned num_leds,
                                             struct gpio_led *leds)
 #else
 static inline void ramips_register_gpio_leds(int id, unsigned num_leds,
                                             struct gpio_led *leds)
index a804488f085b76f27745d3eb5cb49a2bd26f724d..7dfc5e321ac104a41e6aeb91d7c2f58fb4217468 100644 (file)
@@ -17,8 +17,8 @@
 #include <linux/init.h>
 #include <linux/io.h>
 
 #include <linux/init.h>
 #include <linux/io.h>
 
-void rt288x_detect_sys_type(void) __init;
-void rt288x_detect_sys_freq(void) __init;
+void rt288x_detect_sys_type(void);
+void rt288x_detect_sys_freq(void);
 
 extern unsigned long rt288x_cpu_freq;
 extern unsigned long rt288x_sys_freq;
 
 extern unsigned long rt288x_cpu_freq;
 extern unsigned long rt288x_sys_freq;
@@ -68,6 +68,6 @@ static inline u32 rt288x_memc_rr(unsigned reg)
        return __raw_readl(rt288x_memc_base + reg);
 }
 
        return __raw_readl(rt288x_memc_base + reg);
 }
 
-void rt288x_gpio_init(u32 mode) __init;
+void rt288x_gpio_init(u32 mode);
 
 #endif /* _RT228X_H_ */
 
 #endif /* _RT228X_H_ */
index 195bfbe51ac8a0e56dcc0c26b43c020bf864585d..96ae26c3c8e731c5155ad3af68f6412f7943be2c 100644 (file)
@@ -16,8 +16,8 @@
 #include <linux/init.h>
 #include <linux/io.h>
 
 #include <linux/init.h>
 #include <linux/io.h>
 
-void rt305x_detect_sys_type(void) __init;
-void rt305x_detect_sys_freq(void) __init;
+void rt305x_detect_sys_type(void);
+void rt305x_detect_sys_freq(void);
 
 extern unsigned long rt305x_cpu_freq;
 extern unsigned long rt305x_sys_freq;
 
 extern unsigned long rt305x_cpu_freq;
 extern unsigned long rt305x_sys_freq;
@@ -126,6 +126,6 @@ static inline u32 rt305x_memc_rr(unsigned reg)
 #define RT305X_GPIO_GE0_RXDV   50
 #define RT305X_GPIO_GE0_RXCLK  51
 
 #define RT305X_GPIO_GE0_RXDV   50
 #define RT305X_GPIO_GE0_RXCLK  51
 
-void rt305x_gpio_init(u32 mode) __init;
+void rt305x_gpio_init(u32 mode);
 
 #endif /* _RT305X_H_ */
 
 #endif /* _RT305X_H_ */
index 6bd2d3f90c5deb1a76a0cfb8c049f64df91e2df3..1ffbfb2a8a05d57f3882cec2720b2273e2150ca1 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Ralink RT288x SoC specific platform definitions
  *
 /*
  * Ralink RT288x SoC specific platform definitions
  *
- * Copyright (C) 2008 Gabor Juhos <juhosg@openwrt.org>
+ * Copyright (C) 2008-2011 Gabor Juhos <juhosg@openwrt.org>
  * Copyright (C) 2008 Imre Kaloz <kaloz@openwrt.org>
  *
  * This program is free software; you can redistribute it and/or modify it
  * Copyright (C) 2008 Imre Kaloz <kaloz@openwrt.org>
  *
  * This program is free software; you can redistribute it and/or modify it
 
 struct physmap_flash_data;
 
 
 struct physmap_flash_data;
 
-extern void rt288x_register_flash(unsigned int id,
-                                 struct physmap_flash_data *pdata) __init;
-void rt288x_register_wifi(void) __init;
+void rt288x_register_flash(unsigned int id, struct physmap_flash_data *pdata);
+void rt288x_register_wifi(void);
 
 extern struct ramips_eth_platform_data rt288x_eth_data;
 
 extern struct ramips_eth_platform_data rt288x_eth_data;
-void rt288x_register_ethernet(void) __init;
+void rt288x_register_ethernet(void);
 
 #endif  /* __ASM_MACH_RT288X_PLATFORM_H */
 
 #endif  /* __ASM_MACH_RT288X_PLATFORM_H */
index 6a267116b5c3b9f13de7565425ffdac935e13252..31ef4033f6b05f01b7d0590cfcd274610c982b47 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Ralink RT305x SoC specific platform device definitions
  *
 /*
  * Ralink RT305x SoC specific platform device definitions
  *
- * Copyright (C) 2009-2010 Gabor Juhos <juhosg@openwrt.org>
+ * Copyright (C) 2009-2011 Gabor Juhos <juhosg@openwrt.org>
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 as published
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 as published
@@ -17,10 +17,9 @@ struct physmap_flash_data;
 
 extern struct rt305x_esw_platform_data rt305x_esw_data;
 
 
 extern struct rt305x_esw_platform_data rt305x_esw_data;
 
-extern void rt305x_register_flash(unsigned int id,
-                                 struct physmap_flash_data *pdata) __init;
-extern void rt305x_register_ethernet(void) __init;
-extern void rt305x_register_wifi(void) __init;
+void rt305x_register_flash(unsigned int id, struct physmap_flash_data *pdata);
+void rt305x_register_ethernet(void);
+void rt305x_register_wifi(void);
 
 #endif  /* __RT305X_DEVICES_H */
 
 
 #endif  /* __RT305X_DEVICES_H */