diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2010-11-12 18:51:21 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2010-11-12 18:51:21 +0000 |
commit | b94e0b9e2f3668fb71c7415e26ff0ad902b98a50 (patch) | |
tree | 8f94973eea191fc662a190d673a31d3525c45cf3 | |
parent | ab91049eb33f3bfee2f85928fd3f74b9d2f40ae1 (diff) | |
download | upstream-b94e0b9e2f3668fb71c7415e26ff0ad902b98a50.tar.gz upstream-b94e0b9e2f3668fb71c7415e26ff0ad902b98a50.tar.bz2 upstream-b94e0b9e2f3668fb71c7415e26ff0ad902b98a50.zip |
ar71xx: fix inline attribute location
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23978 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ar71xx/prom.c | 2 | ||||
-rw-r--r-- | target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h | 4 | ||||
-rw-r--r-- | target/linux/ar71xx/files/drivers/watchdog/ar71xx_wdt.c | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/prom.c b/target/linux/ar71xx/files/arch/mips/ar71xx/prom.c index 2accbf8f20..c40dae319a 100644 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/prom.c +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/prom.c @@ -124,7 +124,7 @@ static int __init ar71xx_use__image_cmdline(void) return 1; } #else -static int inline ar71xx_use__image_cmdline(void) { return 0; } +static inline int ar71xx_use__image_cmdline(void) { return 0; } #endif static __init void ar71xx_prom_init_cmdline(int argc, char **argv) diff --git a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h index b370cf6bcc..42c07cd533 100644 --- a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h +++ b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h @@ -432,7 +432,7 @@ static inline u32 ag71xx_mii_ctrl_rr(struct ag71xx *ag) return __raw_readl(ag->mii_ctrl); } -static void inline ag71xx_mii_ctrl_set_if(struct ag71xx *ag, +static inline void ag71xx_mii_ctrl_set_if(struct ag71xx *ag, unsigned int mii_if) { u32 t; @@ -443,7 +443,7 @@ static void inline ag71xx_mii_ctrl_set_if(struct ag71xx *ag, ag71xx_mii_ctrl_wr(ag, t); } -static void inline ag71xx_mii_ctrl_set_speed(struct ag71xx *ag, +static inline void ag71xx_mii_ctrl_set_speed(struct ag71xx *ag, unsigned int speed) { u32 t; diff --git a/target/linux/ar71xx/files/drivers/watchdog/ar71xx_wdt.c b/target/linux/ar71xx/files/drivers/watchdog/ar71xx_wdt.c index b8b2b03c0e..976b23a017 100644 --- a/target/linux/ar71xx/files/drivers/watchdog/ar71xx_wdt.c +++ b/target/linux/ar71xx/files/drivers/watchdog/ar71xx_wdt.c @@ -54,19 +54,19 @@ static int wdt_timeout = WDT_TIMEOUT; static int boot_status; static int max_timeout; -static void inline ar71xx_wdt_keepalive(void) +static inline void ar71xx_wdt_keepalive(void) { ar71xx_reset_wr(AR71XX_RESET_REG_WDOG, ar71xx_ahb_freq * wdt_timeout); } -static void inline ar71xx_wdt_enable(void) +static inline void ar71xx_wdt_enable(void) { printk(KERN_DEBUG DRV_NAME ": enabling watchdog timer\n"); ar71xx_wdt_keepalive(); ar71xx_reset_wr(AR71XX_RESET_REG_WDOG_CTRL, WDOG_CTRL_ACTION_FCR); } -static void inline ar71xx_wdt_disable(void) +static inline void ar71xx_wdt_disable(void) { printk(KERN_DEBUG DRV_NAME ": disabling watchdog timer\n"); ar71xx_reset_wr(AR71XX_RESET_REG_WDOG_CTRL, WDOG_CTRL_ACTION_NONE); |