static void __init exynos5250_clk_init(struct device_node *np)
{
void __iomem *reg_base;
- struct clk *vpllsrc;
- unsigned long fin_pll_rate, mout_vpllsrc_rate = 0;
if (np) {
reg_base = of_iomap(np, 0);
samsung_clk_register_mux(exynos5250_pll_pmux_clks,
ARRAY_SIZE(exynos5250_pll_pmux_clks));
- fin_pll_rate = _get_rate("fin_pll");
-
- if (fin_pll_rate == 24 * MHZ)
+ if (_get_rate("fin_pll") == 24 * MHZ)
exynos5250_plls[epll].rate_table = epll_24mhz_tbl;
- vpllsrc = __clk_lookup("mout_vpllsrc");
- if (vpllsrc)
- mout_vpllsrc_rate = clk_get_rate(vpllsrc);
-
- if (mout_vpllsrc_rate == 24 * MHZ)
+ if (_get_rate("mout_vpllsrc") == 24 * MHZ)
exynos5250_plls[vpll].rate_table = vpll_24mhz_tbl;
samsung_clk_register_pll(exynos5250_plls, ARRAY_SIZE(exynos5250_plls),