1. 21 Jul, 2017 1 commit
    • Rob Herring's avatar
      clk: Convert to using %pOF instead of full_name · 16673931
      Rob Herring authored
      
      Now that we have a custom printf format specifier, convert users of
      full_name to use %pOF instead. This is preparation to remove storing
      of the full path string for each node.
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      Cc: Michael Turquette <mturquette@baylibre.com>
      Cc: Stephen Boyd <sboyd@codeaurora.org>
      Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>
      Cc: Alexandre Torgue <alexandre.torgue@st.com>
      Cc: Russell King <linux@armlinux.org.uk>
      Cc: Matthias Brugger <matthias.bgg@gmail.com>
      Cc: Geert Uytterhoeven <geert+renesas@glider.be>
      Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
      Cc: Chen-Yu Tsai <wens@csie.org>
      Cc: "Emilio López" <emilio@elopez.com.ar>
      Cc: Peter De Schrijver <pdeschrijver@nvidia.com>
      Cc: Prashant Gaikwad <pgaikwad@nvidia.com>
      Cc: Thierry Reding <thierry.reding@gmail.com>
      Cc: Jonathan Hunter <jonathanh@nvidia.com>
      Cc: Tero Kristo <t-kristo@ti.com>
      Cc: linux-clk@vger.kernel.org
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: linux-mediat...
      16673931
  2. 18 Jul, 2017 1 commit
    • Gustavo A. R. Silva's avatar
      clk: moxart: remove unnecessary statics · c8108cf2
      Gustavo A. R. Silva authored
      
      Remove unnecessary static on local variable _base_ in both functions
      moxart_of_pll_clk_init() and moxart_of_apb_clk_init(). Such variables
      are initialized before being used, on every execution path throughout
      the mentioned functions. The statics have no benefit and, removing
      them reduce the code size.
      
      This issue was detected using Coccinelle and the following semantic patch:
      
      @bad exists@
      position p;
      identifier x;
      type T;
      @@
      
      static T x@p;
      ...
      x = <+...x...+>
      
      @@
      identifier x;
      expression e;
      type T;
      position p != bad.p;
      @@
      
      -static
       T x@p;
       ... when != x
           when strict
      ?x = e;
      
      In the following log you can see the difference in the code size. Also,
      notice that the bss segment is reduced down to zero. This log is the
      output of the size command, before and after the code change:
      
      before:
         text    data     bss     dec     hex filename
         1724     384     128    2236     8bc drivers/clk/clk-moxart.o
      
      after:
         text    data     bss     dec     hex filename
         1697     240       0    1937     791 drivers/clk/clk-moxart.o
      Signed-off-by: default avatarGustavo A. R. Silva <garsilva@embeddedor.com>
      Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
      c8108cf2
  3. 25 Aug, 2016 1 commit
  4. 20 Jul, 2015 1 commit
  5. 15 May, 2015 1 commit
    • Stephen Boyd's avatar
      clk: moxart: Silence sparse warnings · 61ad23a1
      Stephen Boyd authored
      
      drivers/clk/clk-moxart.c:18:13: warning: symbol 'moxart_of_pll_clk_init' was not declared. Should it be static?
      drivers/clk/clk-moxart.c:56:13: warning: symbol 'moxart_of_apb_clk_init' was not declared. Should it be static?
      
      Cc: Jonas Jensen <jonas.jensen@gmail.com>
      Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
      61ad23a1
  6. 19 Mar, 2014 1 commit