Skip to content

Commit

Permalink
ARM: 6076/1: SA1100: add processor check to sa1110-cpufreq driver
Browse files Browse the repository at this point in the history
Just to make sure that this driver won't run on StrongArm SA1100
when both SA1100 and SA1110 cpufreq drivers are built in (usually
in multimachine config). SA1100 driver already has similar check.

Signed-off-by: Dmitry Artamonow <mad_soft@inbox.ru>
Acked-by: Eric Miao <eric.y.miao@gmail.com>
Acked-by: Kristoffer Ericson <kristoffer.ericson@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Dmitry Artamonow authored and Russell King committed May 1, 2010
1 parent d2ae158 commit e5992c0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/arm/mach-sa1100/cpu-sa1110.c
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,9 @@ static int __init sa1110_clk_init(void)
struct sdram_params *sdram;
const char *name = sdram_name;

if (!cpu_is_sa1110())
return -ENODEV;

if (!name[0]) {
if (machine_is_assabet())
name = "TC59SM716-CL3";
Expand Down

0 comments on commit e5992c0

Please sign in to comment.