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

Commit 35f8550c authored by Kukjin Kim's avatar Kukjin Kim
Browse files

ARM: SAMSUNG: fix to support for missing cpu specific map_io



Since commit 7ed76e08 (ARM: EXYNOS: Fix low level debug support)
map_io() is not needed for exynos5440 so need to fix to lookup
cpu which using map_io(). Without this, kernel boot log complains
'CPU EXYNOS5440 support not enabled' on exynos5440 and panic().

Signed-off-by: default avatarKukjin Kim <kgene.kim@samsung.com>
parent 5ae90d8e
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -55,11 +55,12 @@ void __init s3c_init_cpu(unsigned long idcode,

	printk("CPU %s (id 0x%08lx)\n", cpu->name, idcode);

	if (cpu->map_io == NULL || cpu->init == NULL) {
	if (cpu->init == NULL) {
		printk(KERN_ERR "CPU %s support not enabled\n", cpu->name);
		panic("Unsupported Samsung CPU");
	}

	if (cpu->map_io)
		cpu->map_io();
}