]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
arm: socfpga: clock: Drop nonsense inlining from clock manager code
authorMarek Vasut <marex@denx.de>
Mon, 8 Sep 2014 12:08:45 +0000 (14:08 +0200)
committerMarek Vasut <marex@denx.de>
Mon, 6 Oct 2014 15:46:48 +0000 (17:46 +0200)
The inlining is done by GCC when needed, there is no need to do it
explicitly. Furthermore, the inline keyword does not force-inline
the code, but is only a hint for the compiler. Scrub this hint.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Chin Liang See <clsee@altera.com>
Cc: Dinh Nguyen <dinguyen@altera.com>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
Cc: Tom Rini <trini@ti.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Pavel Machek <pavel@denx.de>
Acked-by: Dinh Nguyen <dinguyen@opensource.altera.com>
Acked-by: Pavel Machek <pavel@denx.de>
arch/arm/cpu/armv7/socfpga/clock_manager.c

index 158501acba8c84b0681d8011181bf3484b205c51..d032bbd66c5c3fdbd44f7d851afa9a21ea04305a 100644 (file)
@@ -30,7 +30,7 @@ static const struct socfpga_clock_manager *clock_manager_base =
        CLKMGR_MAINPLLGRP_VCO_EN_SET(1)| \
        CLKMGR_MAINPLLGRP_VCO_BGPWRDN_SET(0))
 
-static inline void cm_wait_for_lock(uint32_t mask)
+static void cm_wait_for_lock(uint32_t mask)
 {
        register uint32_t inter_val;
        do {
@@ -39,7 +39,7 @@ static inline void cm_wait_for_lock(uint32_t mask)
 }
 
 /* function to poll in the fsm busy bit */
-static inline void cm_wait_for_fsm(void)
+static void cm_wait_for_fsm(void)
 {
        while (readl(&clock_manager_base->stat) & CLKMGR_STAT_BUSY)
                ;
@@ -49,22 +49,22 @@ static inline void cm_wait_for_fsm(void)
  * function to write the bypass register which requires a poll of the
  * busy bit
  */
-static inline void cm_write_bypass(uint32_t val)
+static void cm_write_bypass(uint32_t val)
 {
        writel(val, &clock_manager_base->bypass);
        cm_wait_for_fsm();
 }
 
 /* function to write the ctrl register which requires a poll of the busy bit */
-static inline void cm_write_ctrl(uint32_t val)
+static void cm_write_ctrl(uint32_t val)
 {
        writel(val, &clock_manager_base->ctrl);
        cm_wait_for_fsm();
 }
 
 /* function to write a clock register that has phase information */
-static inline void cm_write_with_phase(uint32_t value,
-       uint32_t reg_address, uint32_t mask)
+static void cm_write_with_phase(uint32_t value,
+                               uint32_t reg_address, uint32_t mask)
 {
        /* poll until phase is zero */
        while (readl(reg_address) & mask)