bg2.c (858a0d7eb5300b5f620d98ab3c4b96c9d5f19131) bg2.c (1667393126d7c51fad8b3cb9d3798e8e0367e2ec)
1/*
2 * Copyright (c) 2014 Marvell Technology Group Ltd.
3 *
4 * Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
5 * Alexandre Belloni <alexandre.belloni@free-electrons.com>
6 *
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms and conditions of the GNU General Public License,

--- 665 unchanged lines hidden (view full) ---

674 hws[CLKID_TWD] =
675 clk_hw_register_fixed_factor(NULL, "twd", "cpu", 0, 1, 3);
676
677 /* check for errors on leaf clocks */
678 for (n = 0; n < MAX_CLKS; n++) {
679 if (!IS_ERR(hws[n]))
680 continue;
681
1/*
2 * Copyright (c) 2014 Marvell Technology Group Ltd.
3 *
4 * Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
5 * Alexandre Belloni <alexandre.belloni@free-electrons.com>
6 *
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms and conditions of the GNU General Public License,

--- 665 unchanged lines hidden (view full) ---

674 hws[CLKID_TWD] =
675 clk_hw_register_fixed_factor(NULL, "twd", "cpu", 0, 1, 3);
676
677 /* check for errors on leaf clocks */
678 for (n = 0; n < MAX_CLKS; n++) {
679 if (!IS_ERR(hws[n]))
680 continue;
681
682 pr_err("%s: Unable to register leaf clock %d\n",
683 np->full_name, n);
682 pr_err("%pOF: Unable to register leaf clock %d\n", np, n);
684 goto bg2_fail;
685 }
686
687 /* register clk-provider */
688 of_clk_add_hw_provider(np, of_clk_hw_onecell_get, clk_data);
689
690 return;
691
692bg2_fail:
693 iounmap(gbase);
694}
695CLK_OF_DECLARE(berlin2_clk, "marvell,berlin2-clk",
696 berlin2_clock_setup);
683 goto bg2_fail;
684 }
685
686 /* register clk-provider */
687 of_clk_add_hw_provider(np, of_clk_hw_onecell_get, clk_data);
688
689 return;
690
691bg2_fail:
692 iounmap(gbase);
693}
694CLK_OF_DECLARE(berlin2_clk, "marvell,berlin2-clk",
695 berlin2_clock_setup);