ar71xx: fix inline attribute location
authorGabor Juhos <juhosg@openwrt.org>
Fri, 12 Nov 2010 18:51:21 +0000 (18:51 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Fri, 12 Nov 2010 18:51:21 +0000 (18:51 +0000)
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
SVN-Revision: 23978

target/linux/ar71xx/files/arch/mips/ar71xx/prom.c
target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h
target/linux/ar71xx/files/drivers/watchdog/ar71xx_wdt.c

index 2accbf8f209ff534a0fbf240ecf21d6d5074eba3..c40dae319a3dbf5afe8ad560ad526363d31411fb 100644 (file)
@@ -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)
index b370cf6bccd63c3547612be35da2e01be4a9adeb..42c07cd533442cb16f312037632383f1b92ba517 100644 (file)
@@ -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;
index b8b2b03c0ee6b23fc3e865c67ef06cc31c85ecf1..976b23a017fadaa6d43acbcaad073d6c7ce7d479 100644 (file)
@@ -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);