Merge branch 'clock_devel_3.7' into hwmod_prcm_clock_a_3.7
authorPaul Walmsley <paul@pwsan.com>
Sun, 23 Sep 2012 23:27:43 +0000 (17:27 -0600)
committerPaul Walmsley <paul@pwsan.com>
Sun, 23 Sep 2012 23:27:43 +0000 (17:27 -0600)
Conflicts:
arch/arm/mach-omap2/clkt34xx_dpll3m2.c
arch/arm/mach-omap2/clkt_clksel.c
arch/arm/mach-omap2/clock.c

1  2 
arch/arm/mach-omap2/clkt34xx_dpll3m2.c
arch/arm/mach-omap2/clkt_clksel.c
arch/arm/mach-omap2/clkt_dpll.c
arch/arm/mach-omap2/clock.c
arch/arm/mach-omap2/clock3xxx.c
arch/arm/mach-omap2/dpll3xxx.c
arch/arm/mach-omap2/gpmc.c
arch/arm/mach-omap2/omap_hwmod.c
arch/arm/mach-omap2/pm.c
arch/arm/plat-omap/omap_device.c

@@@ -90,9 -92,10 +92,9 @@@ int omap3_core_dpll_m2_set_rate(struct 
        if (c == 0)
                c = 1;
  
-       pr_debug("clock: changing CORE DPLL rate from %lu to %lu\n", clk->rate,
-                validrate);
+       pr_debug("clock: changing CORE DPLL rate from %lu to %lu\n",
+                clkrate, validrate);
 -      pr_debug("clock: SDRC CS0 timing params used:"
 -               " RFR %08x CTRLA %08x CTRLB %08x MR %08x\n",
 +      pr_debug("clock: SDRC CS0 timing params used: RFR %08x CTRLA %08x CTRLB %08x MR %08x\n",
                 sdrc_cs0->rfr_ctrl, sdrc_cs0->actim_ctrla,
                 sdrc_cs0->actim_ctrlb, sdrc_cs0->mr);
        if (sdrc_cs1)
@@@ -357,11 -374,14 +374,13 @@@ void omap2_init_clksel_parent(struct cl
                                continue;
  
                        if (clkr->val == r) {
-                               if (clk->parent != clks->parent) {
+                               if (parent != clks->parent) {
 -                                      pr_debug("clock: inited %s parent "
 -                                               "to %s (was %s)\n",
 +                                      pr_debug("clock: %s: inited parent to %s (was %s)\n",
-                                                clk->name, clks->parent->name,
-                                                ((clk->parent) ?
-                                                 clk->parent->name : "NULL"));
+                                                clk_name,
+                                                __clk_get_name(clks->parent),
+                                                ((parent) ?
+                                                 __clk_get_name(parent) :
+                                                "NULL"));
                                        clk_reparent(clk, clks->parent);
                                };
                                found = 1;
Simple merge
Simple merge
Simple merge
@@@ -617,17 -623,15 +623,18 @@@ unsigned long omap3_clkoutx2_recalc(str
        unsigned long rate;
        u32 v;
        struct clk *pclk;
+       unsigned long parent_rate;
  
        /* Walk up the parents of clk, looking for a DPLL */
-       pclk = clk->parent;
+       pclk = __clk_get_parent(clk);
        while (pclk && !pclk->dpll_data)
-               pclk = pclk->parent;
+               pclk = __clk_get_parent(pclk);
  
 -      /* clk does not have a DPLL as a parent? */
 -      WARN_ON(!pclk);
 +      /* clk does not have a DPLL as a parent?  error in the clock data */
 +      if (!pclk) {
 +              WARN_ON(1);
 +              return 0;
 +      }
  
        dd = pclk->dpll_data;
  
Simple merge
Simple merge
Simple merge
Simple merge