Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 350739
b: refs/heads/master
c: 5b6e0ad
h: refs/heads/master
i:
  350737: e03a63b
  350735: 4db73c3
v: v3
  • Loading branch information
Prashant Gaikwad authored and Mike Turquette committed Jan 24, 2013
1 parent 73f15b9 commit 1d01107
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d34bcdeb43331f87acf21423df26a8567c07de67
refs/heads/master: 5b6e0adb69674c684c33503f50010644b049029c
17 changes: 5 additions & 12 deletions trunk/drivers/clk/clk-vt8500.c
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ static __init void vtwm_device_clk_init(struct device_node *node)
rc = of_clk_add_provider(node, of_clk_src_simple_get, clk);
clk_register_clkdev(clk, clk_name, NULL);
}

CLK_OF_DECLARE(vt8500_device, "via,vt8500-device-clock", vtwm_device_clk_init);

/* PLL clock related functions */

Expand Down Expand Up @@ -612,26 +612,19 @@ static void __init vt8500_pll_init(struct device_node *node)
{
vtwm_pll_clk_init(node, PLL_TYPE_VT8500);
}
CLK_OF_DECLARE(vt8500_pll, "via,vt8500-pll-clock", vt8500_pll_init);

static void __init wm8650_pll_init(struct device_node *node)
{
vtwm_pll_clk_init(node, PLL_TYPE_WM8650);
}
CLK_OF_DECLARE(wm8650_pll, "wm,wm8650-pll-clock", wm8650_pll_init);

static void __init wm8750_pll_init(struct device_node *node)
{
vtwm_pll_clk_init(node, PLL_TYPE_WM8750);
}

static const __initconst struct of_device_id clk_match[] = {
{ .compatible = "fixed-clock", .data = of_fixed_clk_setup, },
{ .compatible = "via,vt8500-pll-clock", .data = vt8500_pll_init, },
{ .compatible = "wm,wm8650-pll-clock", .data = wm8650_pll_init, },
{ .compatible = "wm,wm8750-pll-clock", .data = wm8750_pll_init, },
{ .compatible = "via,vt8500-device-clock",
.data = vtwm_device_clk_init, },
{ /* sentinel */ }
};
CLK_OF_DECLARE(wm8750_pll, "wm,wm8750-pll-clock", wm8750_pll_init);

void __init vtwm_clk_init(void __iomem *base)
{
Expand All @@ -640,5 +633,5 @@ void __init vtwm_clk_init(void __iomem *base)

pmc_base = base;

of_clk_init(clk_match);
of_clk_init(NULL);
}

0 comments on commit 1d01107

Please sign in to comment.