Skip to content

Commit dc81058

Browse files
committed
ARM: socfpga: remove custom .init_time hook
With arch/arm calling of_clk_init(NULL) from time_init(), we can now remove custom .init_time hooks. Signed-off-by: Sebastian Hesselbarth <[email protected]> Acked-by: Dinh Nguyen <[email protected]>
1 parent 2ab38d9 commit dc81058

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

arch/arm/mach-socfpga/socfpga.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
* You should have received a copy of the GNU General Public License
1515
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
*/
17-
#include <linux/clk-provider.h>
18-
#include <linux/clocksource.h>
1917
#include <linux/irqchip.h>
2018
#include <linux/of_address.h>
2119
#include <linux/of_irq.h>
@@ -91,12 +89,6 @@ static void __init socfpga_init_irq(void)
9189
socfpga_sysmgr_init();
9290
}
9391

94-
static void __init socfpga_init_time(void)
95-
{
96-
of_clk_init(NULL);
97-
clocksource_of_init();
98-
}
99-
10092
static void socfpga_cyclone5_restart(enum reboot_mode mode, const char *cmd)
10193
{
10294
u32 temp;
@@ -126,7 +118,6 @@ DT_MACHINE_START(SOCFPGA, "Altera SOCFPGA")
126118
.smp = smp_ops(socfpga_smp_ops),
127119
.map_io = socfpga_map_io,
128120
.init_irq = socfpga_init_irq,
129-
.init_time = socfpga_init_time,
130121
.init_machine = socfpga_cyclone5_init,
131122
.restart = socfpga_cyclone5_restart,
132123
.dt_compat = altera_dt_match,

0 commit comments

Comments
 (0)