Skip to content

Commit

Permalink
Merge tag 'samsung-fixes-2' of git://git.kernel.org/pub/scm/linux/ker…
Browse files Browse the repository at this point in the history
…nel/git/kgene/linux-samsung into fixes

From Kukjin Kim:
Fix to boot kernel on exynos5440 which has no specific map_io(). Current kernel
cannot support no CPU specific map_io() for Samsung SoCs.

* tag 'samsung-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung:
  ARM: SAMSUNG: fix to support for missing cpu specific map_io

Signed-off-by: Olof Johansson <olof@lixom.net>
  • Loading branch information
Olof Johansson committed Aug 11, 2013
2 parents 1154f85 + 35f8550 commit 3554c22
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions arch/arm/plat-samsung/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,13 @@ 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");
}

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

/* s3c24xx_init_clocks
Expand Down

0 comments on commit 3554c22

Please sign in to comment.