Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8321b758 authored by Shawn Guo's avatar Shawn Guo
Browse files

ARM: imx: use machine specific hook for late init

parent bb13fabc
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -62,11 +62,8 @@ EXPORT_SYMBOL(mx51_revision);
 * Dependent on link order - so the assumption is that vfp_init is called
 * before us.
 */
static int __init mx51_neon_fixup(void)
int __init mx51_neon_fixup(void)
{
	if (!cpu_is_mx51())
		return 0;

	if (mx51_revision() < IMX_CHIP_REVISION_3_0 &&
			(elf_hwcap & HWCAP_NEON)) {
		elf_hwcap &= ~HWCAP_NEON;
@@ -75,7 +72,6 @@ static int __init mx51_neon_fixup(void)
	return 0;
}

late_initcall(mx51_neon_fixup);
#endif

static int get_mx53_srev(void)
+1 −0
Original line number Diff line number Diff line
@@ -115,6 +115,7 @@ DT_MACHINE_START(IMX51_DT, "Freescale i.MX51 (Device Tree Support)")
	.handle_irq	= imx51_handle_irq,
	.timer		= &imx51_timer,
	.init_machine	= imx51_dt_init,
	.init_late	= imx51_init_late,
	.dt_compat	= imx51_dt_board_compat,
	.restart	= mxc_restart,
MACHINE_END
+1 −0
Original line number Diff line number Diff line
@@ -297,5 +297,6 @@ MACHINE_START(EUKREA_CPUIMX51, "Eukrea CPUIMX51 Module")
	.handle_irq = imx51_handle_irq,
	.timer = &mxc_timer,
	.init_machine = eukrea_cpuimx51_init,
	.init_late	= imx51_init_late,
	.restart	= mxc_restart,
MACHINE_END
+1 −0
Original line number Diff line number Diff line
@@ -335,5 +335,6 @@ MACHINE_START(EUKREA_CPUIMX51SD, "Eukrea CPUIMX51SD")
	.handle_irq = imx51_handle_irq,
	.timer = &mxc_timer,
	.init_machine = eukrea_cpuimx51sd_init,
	.init_late	= imx51_init_late,
	.restart	= mxc_restart,
MACHINE_END
+1 −0
Original line number Diff line number Diff line
@@ -175,5 +175,6 @@ MACHINE_START(MX51_3DS, "Freescale MX51 3-Stack Board")
	.handle_irq = imx51_handle_irq,
	.timer = &mx51_3ds_timer,
	.init_machine = mx51_3ds_init,
	.init_late	= imx51_init_late,
	.restart	= mxc_restart,
MACHINE_END
Loading