/*
- * 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
#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);
-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 */
/*
* 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
#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,
/*
* 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
#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)
#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;
return __raw_readl(rt288x_memc_base + reg);
}
-void rt288x_gpio_init(u32 mode) __init;
+void rt288x_gpio_init(u32 mode);
#endif /* _RT228X_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;
#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_ */
/*
* 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
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;
-void rt288x_register_ethernet(void) __init;
+void rt288x_register_ethernet(void);
#endif /* __ASM_MACH_RT288X_PLATFORM_H */
/*
* 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
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 */